Printing speed

Stimulsoft Reports.NET discussion
Post Reply
Tobias
Posts: 104
Joined: Mon Nov 24, 2008 8:44 am

Printing speed

Post by Tobias »

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?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Printing speed

Post by HighAley »

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.
Tobias
Posts: 104
Joined: Mon Nov 24, 2008 8:44 am

Re: Printing speed

Post by Tobias »

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.
Tobias
Posts: 104
Joined: Mon Nov 24, 2008 8:44 am

Re: Printing speed

Post by Tobias »

Somehow at least OnQueryPageSettings takes whopping 236 ms.
It seems accessing the System.Drawing.Printing.PrinterSettings is kinda slow.

See attachment.
Attachments
profiler.png
profiler.png (52.53 KiB) Viewed 1737 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Printing speed

Post by HighAley »

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.
Post Reply