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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printers - Can an application be set up to call the printer selection? 1

Status
Not open for further replies.

rleiman

Programmer
May 3, 2006
258
US
Hi.

I noticed when I click the printer icon on the printer viewer that the report goes to the default printer.

Can you tell me how to set up an application so the user can choose a printer from the Windows printer selection list when they call a report?

Also, can you tell me how to send a report directly to a given printer that I specify within code? I plan to put this in an embed on a button.

The report is a regular clarion one, not from the report writer software.

Thanks.
Emad
 
At the Print Preview accepted embed of the report call the Windows printer dialog ie.
IF NOT PRINTERDIALOG('Choose Printer')
RETURN !If cancel but from dialog window
END
 
Hi Tin Legs,

Thanks for the code. I will use it in my application.

Truly,
Emad
 
Hi Emad,

The code is best put before ReportManager.OpenReport since choosing the printer before the Report is generated will generate the correct output.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top