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!

select printer?

Status
Not open for further replies.

jhermiz2

Programmer
Dec 2, 2003
62
US
When I design a report in Crystal it saves that printer that it was designed in. When I use my viewer in my app to print the report and I click the print button it does not allow me to change my printer.

So being logical...i changed my default printer and clicked the print button again...only to have crystal display the same printer it was designed in and not letting me change it.

Surely there is a way to allow the end user to select a different printer?

JOn
 
If it helps my viewer was written in VB.
I have the EnablePrintButton set to true...
Isn't there a way to tell crystal to open the printsetup rather than directly use the printer that was selected when I created the report.

This seems very odd.
 
Anyone out there ?

There must be a way on my CRViewer object that I can call a method to open a print dialog box for crystal.

I tried

objReport.PrintSetup

but it doesnt work...please anyone who knows vb with crystal, this is urgent and i'm running very low on ideas.

Thanks,
Jon
 
Got it nevermind..I actually set the object to nothing!!!!

HAHA
 
If you want the reports to go to the default printer on the workstation, you can use the SelectPrinter method from your VB app, just before the report is displayed to (re)set the printer:
Code:
Report.SelectPrinter Printer.DriverName, Printer.DeviceName, Printer.Port
Otherwise, you could design your own printer setup form to allow the user to pick a printer, then call PrinterSetup, passing the select printer's properties.

-dave
 
See Thread222-670771

This is what i ended up using to select printers for my crystal reports.


Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top