Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Whether Report Printed
Message
 
To
19/06/2001 10:27:47
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00521016
Message ID:
00521165
Views:
20
>Is there a way to determine whether the user actually printed a report in Preview mode? Like, if clicked on the Close button, return False, if clicked on Printer button, return True. Thanks!
>
>Regards, Renoir


In the On Exit of the Summary Band of your report, call a UDF that has the following code:

IF WEXIST('Printing...')
RETURN .t.
ENDIF

The "Printing..." window will only exist when you are printing the report. And by calling this UDF in the Summary Band, you are assured that they printed the report and didn't cancel before it got to the end. Of course, just because they let FoxPro finish processing the report doesn't mean that the printer is turned on or isn't out of paper < s >. But hey, we're only programmers ... not God!

Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform