Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP 7.0 Crystal Reports trap printer selection

Status
Not open for further replies.

bettyfurr

Technical User
Mar 12, 2002
371
US
I use
orpt.printersetup(0)
to get the printer selection

orpt.printout(.F.) to print the report. If they cancel the report instead of changing the printer, etc, it still prints.

If I use orpt.printout(.T.) and they cancel here it cancels. How do I check the first selection. I see where this can be done in Craig's book but do not understand how.

orpt.selectprinter(cdriver,cprinter,cport) is how I think it goes. How?

Betty :)

I know one of you guys know how. Refer me to documentation anything to get me over the hump.

Thanks.
 
Betty,

If they cancel the report instead of changing the printer, etc, it still prints.

Are you sure about that? If you pass .F. as the first parameter to Printout, the user will not see the Print dialogue. So I assume you mean they are cancelling from the "printing in progress" dialogue.

The trouble is, by the time they hit Cancel in that dialogue, the entire report might already have gone to the print spooler, so Windows will continue to print it (they would need to get into the print manager to physically cancel it).

Does that make sense?

Mike


Mike Lewis
Edinburgh, Scotland
 
Mike,

They are clicking on the cancel button on the orpt.printersetup(0) dialog box.

Without the orpt.printout=(.t.), they can not cancel the print. If I set this to orpt.printout=(.F.), they can then cancel the print prior to it printing.

Without the printout statement, there is no printing. I am still in the learning phase on how to interface CR with VFP.

I want to check something and determine that orpt.printersetup(0) cancel button was clicked.

If cancel button was click stop.

Betty :)

Thank you,



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top