Crystal Reports PrintToPrinter Method seems to hang.

  • Thread starter Thread starter mike
  • Start date Start date
M

mike

Printer - HP4300 in 3 different locations.
VB.Net

Calling crReportObject.PrintToPrinter(iRptCopies, True, 1, -1) doesn't
always return.

We have had at least 4 cases now where the printers above seem to hang
with several reports in the printer queue and when this happens the
method PrintToPrinter doesn't return, thus hanging the application. No
error message is logged in the exception log. It simply seems to be
waiting for the printer to return or something.

This is creating havoc with our Invoice process. Each of the printers
in the 3 different locations have had this problem

Is there a way to for us catch an event, or something that will tell
us what is going on?
 
Hi Mike,

There's a big limitation with PrintToPrinter You can't
use it to print on shared printers only local.

Kind Regards
Jorge
 
I'm not sure that would be true. We print 1,000's of reports to shared
printers, but occasionaly a printer will stop and PrintToPrinter
doesn't return. Once the printer's queue is cleaned out, the printing
starts again.
 
Hi guys,

I am having similar problem. From my development environment, I can send the PrinttoPrinter command and reports are printed fine. However, when I package the reports and install it on a QA server then this method hangs. Both of the boxes have network printers installed.

Can you please tell me how you have resolved this issue on your end?

Thanks,
Faisal
 
Back
Top