Skip to Content
0
Former Member
Jan 10, 2011 at 08:16 PM

VB.net PrintToPrinter slow to print (25 seconds)

613 Views

Hello,

I think i'm in the good forum.

I have an application in VB.net and it use some CR8 and CR11 for displaying or print to printer some report.

In my application, i have two reports ( one for order confirmation and other one for billing.)

Here my code

Report.Load(vPathReport)

Report.SetDatabaseLogon("username", "password")

Report.PrintToPrinter(nCopy, False, 0, 0)

When i print order confirmation, the report is sent directly to the printer and NO wait time. But the Billing report, the same code, but a differente "vPathReport' variable and it takes 20-25 second before the report receive it.

Do you kkow why?

Note, when i print the billing report, during those 20-25 seconds, the status on the printer windows, is to SPOOLING, and after 20-25 second, the status change to printing and then the printer receive the report to print.

Thank's for your help!

Pascal