I'm using Reports.Net also for printig labels. A customer recently complained about the printing being "slow". Measuring this, I see that stiReport.Print(false, printerSettings) takes about 600-700 ms (whis is not exactly what I would call "slow"). The report is already compiled and rendered.
Just out of curiosity: Are there any settings which might make the printing a little bit faster?
Printing speed
Re: Printing speed
Hello.
The Print() method create the printer task and push it to printer.
All next delay could be on windows print pool or printer driver side. Especially, if it is a network printer.
Also it could be because the report contains images or RichText. Does the report contains any?
Thank you.
The Print() method create the printer task and push it to printer.
All next delay could be on windows print pool or printer driver side. Especially, if it is a network printer.
Also it could be because the report contains images or RichText. Does the report contains any?
Thank you.
Re: Printing speed
It only contains a single small image, a QRCode, a EAN13 code and a bunch of text fields. The page is only 58 x 45 mm in size. Printing is done on a built-in label printer.
I'll try to see what the profiler says.
I'll try to see what the profiler says.
Re: Printing speed
Somehow at least OnQueryPageSettings takes whopping 236 ms.
It seems accessing the System.Drawing.Printing.PrinterSettings is kinda slow.
See attachment.
It seems accessing the System.Drawing.Printing.PrinterSettings is kinda slow.
See attachment.
- Attachments
-
- profiler.png (52.53 KiB) Viewed 1737 times
Re: Printing speed
Hello.
The OnQueryPageSettings method, as well as get_PaperSource, get_PrinterResolution and other methods communicate with a printer driver.
They get information from the printer. And when the printer is network this communication could take seconds.
If you use Custom Page size, try to set the predefined Page size from the list.
Thank you.
The OnQueryPageSettings method, as well as get_PaperSource, get_PrinterResolution and other methods communicate with a printer driver.
They get information from the printer. And when the printer is network this communication could take seconds.
If you use Custom Page size, try to set the predefined Page size from the list.
Thank you.