>>Does anyone know how to capture the button that
>>was pressed when the Print dialogue is displayed.
>>
>>I need to know if the Cancel button has been
>used.
>>
>>I am using - "REPORT FORM file TO PRINT PROMPT"
>>
>>Thanks.
>
>Doug
>
>Here is the code I use. Hope it helps.
>
>
>if empty(lcPrinter)
> set printer to default
>else
> set printer to name (lcPrinter)
>endif
>lcPrinter = getprinter()
>if empty(lcPrinter)
> *-
> return(FALSE)
>endif
>set printer to name (lcPrinter)
>
>
>
>Tom
This is fine if your using VFP, but FPW doesn't have the option of NAME in the SET PRINTER TO commands. I also doesn't have the all important function GETPRINTER(). This is the FPW topic, isn't it?
mike h. 8-)
Michael P. Haake
FoxPro Programmer
"Doing the best I can!"
** Retired Air Force **