Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User response to Printer Dialogue box
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Title:
User response to Printer Dialogue box
Miscellaneous
Thread ID:
00826693
Message ID:
00826693
Views:
57
I have a VFP7 application that prints out two related reports ( Rpt1 & Rpt2). The 1st report is in portrait mode and the second report is in landscape mode so I can't use subreports. In the code (see below) I bring up the printer setup dialogue box so the user can specify the printer destination etc. and then the printout dialogue box so the user could cancel the print job. The printer dialogue boxes are all suppressed for the second report.

*!* For Report 1
oRpt1.PrinterSetup(0) && Brings up Printer Selection Dialogue Box
oRpt1.PrintOut(.T.) && Brings up Printout Dialogue box

*!* Later for Report 2
oRpt2.PrintOut(.F.) && No dialogue box.

The problem is that the user can cancel printing the first report but the second report will print anyway. Is there a parameter that is passed back when the user clicks CANCEL in the printer setup or print out dialogue boxes that could be tested to cancel printing out both reports?

Stephen J Land
City of Seattle
Reply
Map
View

Click here to load this message in the networking platform