VB 6.0 - how could i show the printer dialog box?

Asked By Ralph Acido on 24-Apr-06 10:23 PM
I got a problem on Crystal report.. How could i show the printer dialog box whenI click the Print Button icon on the Crystal report? So that i can change the default printer into another printer... beacause there are times that the other printer is not available. 

Please help me..

Thanks!

how could i show the printer dialog box - Asked By John Conway on 24-Apr-06 10:46 PM

To change the printer you can add the commondialog control and use a commandbutton on your form > place line below in the Click event of the commandbutton:

[CODE]
commondialog1.ShowPrinter
[/CODE]
Doing this will change the printer to your selection and print to the desired printer when you click the icon in CR.

Is there such a way without using any Control? - Asked By Ralph Acido on 24-Apr-06 10:53 PM

Is there such a way without using a common dialog box.. So the minute I Click the print icon in the Crytal report 9.0 it will display the Print Dialog?
Asked By Rupali Randhave Kolhe on 25-Apr-06 12:24 AM
CrystalReport1.PrinterName=printername
using this property u can change printer name
refer links:
http://www.xtremevbtalk.com/showthread.php?t=59469
http://pds4.devpia.com/top_pds/17000/16843/CR80_Technical%20Reference%20Guide.pdf