Printing Too Slow

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
 
K

Kevin Spencer

Remember that the .Net platform has a lot of security built into it. I
suspect that this is what is slowing down the process, particularly because
it is accessing the Network. Not that I wouldn't like to see Network
security performance improved in the .Net platform, mind you!

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top