D
duylam76
I'm new to printing with C# and I find that printing and previewing is
a lot slower than I expected.
As a test I've just been printing 100 blank pages. When I try to
preview, the "Page 'X' of document" box shows up and it counts very
slowly (a little less than one page per second). As a comparison,
previewing 100 blank pages using MFC is much much faster.
After some searching on the Web, I've found that the fact that I am
using a network printer makes a difference. Something about having to
query the printer for page settings on each page... I'm not sure. To
test this, I tried printing to a PDF file and indeed it was much
faster than printing to a networked printer (alas, I don't have a
local printer to test with).
Unfortunately, though, the software we are writing is directed towards
clients who would only have network printers. This kind of printing/
previewing speed is, in my opinion, just way too slow, particularly
because we have some documents that are over 100 pages long. The
printing slowness I could accept since the printer speed is the
bottleneck anyway. However, the preview needs to be much faster than
this and I don't know how to speed it up (I am, after all, only
printing blank pages so it can't be the drawing or data fetch slowing
it down). If the network printer aspect is the problem, how could I
possibly address this while doing a Preview? (since with Preview, you
don't even select a printer)
Any suggestions?
Duy Lam
a lot slower than I expected.
As a test I've just been printing 100 blank pages. When I try to
preview, the "Page 'X' of document" box shows up and it counts very
slowly (a little less than one page per second). As a comparison,
previewing 100 blank pages using MFC is much much faster.
After some searching on the Web, I've found that the fact that I am
using a network printer makes a difference. Something about having to
query the printer for page settings on each page... I'm not sure. To
test this, I tried printing to a PDF file and indeed it was much
faster than printing to a networked printer (alas, I don't have a
local printer to test with).
Unfortunately, though, the software we are writing is directed towards
clients who would only have network printers. This kind of printing/
previewing speed is, in my opinion, just way too slow, particularly
because we have some documents that are over 100 pages long. The
printing slowness I could accept since the printer speed is the
bottleneck anyway. However, the preview needs to be much faster than
this and I don't know how to speed it up (I am, after all, only
printing blank pages so it can't be the drawing or data fetch slowing
it down). If the network printer aspect is the problem, how could I
possibly address this while doing a Preview? (since with Preview, you
don't even select a printer)
Any suggestions?
Duy Lam