Printing a Crystal Report printer in VB6 to a different printer, but so that it actually prints and doesn't hang.
Posted on 2011-03-09
I have a vb6 app using Crystal Reports 10. I can change the printer in code using:
CrRpt.SelectPrinter PrinterDriver, PrinterName, PrinterPort
This works fine for most printers, but not all. For example, selecting Brother HL-5140 (in my code using VB PrinterDialog control), my code then sets the printer (code line above) and tries to print the crystal report later. The printer status lights up amber for several seconds, then turns back to green and never prints. If I set the same printer as the windows default printer it works fine. My code works for some printers but not all (Ricoh is a problem). I can print to the Brother HL-5140 just fine if it is the Windows Default printer. Any ideas?