Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing Print Dialogue Box Result
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00644779
Message ID:
00878078
Views:
28
>Not directly but you can create variable llPrinted in your program and set it to .T. in the report
* Report Summary band on Exit.
>_VFP.SetVar("llPrinted", WEXIST("Printing..."))
>
>* Program
>llPrinted = .F.
>Report Form myreport to Printer Promp Preview
>IF llPrinted
>   ...
>ENDIF
This way you can also capture situation when user cancels in the middle of printing.
>
>>When a user gets the print dialogue box from PRINT PROMPT there is an option to "Cancel".
>>
>>I am marking a data file to reflect that certain things are printed, but the operator may have pressed "Cancel". In this case I would not want to mark the data file.
>>
>>Is there a way of determining if the operator pressed "Cancel" at the Print Dialogue Box?
>>
>>Mike Smith
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform