Printing Crystal Reports from VB
Posted on 2001-08-24
I am using Crystal Reports in my VB program to provide reports. Now, these reports need to be printed also. If I just use the default print button that comes with Crystal Reports everything is fine. The report gets printed in the format it is supposed to be on the default printer.
Recently I was asked to change the printing functionality to allow the users to select a printer other that the default printer. I have tried to use the Printer dialog box in VB. The first time the user selects a printer - any printer - the report prints fine. If the user does not close the report (form) and wants to print againg, and selects a different printer the formatting of the report goes bad (really bad). It appears that vb does not use the correct driver.
I need to allow my users to select a printer other that the default printer. Any suggestions?