Hi,
i use the code from this code sample on MSDN:
for printing a 5 and sometimes 70 page text-only
data: http://msdn.microsoft.com/en-us/library/ms404294.aspx
The point is, that this is terribly slow and the preview is
unbelievable slow, especially when you have a 70 page
data you want to print. I use a PDF generator to print the
data, at first for testing. Not the printig is slow, but the
generation of the preview sheets and the generation of the
sheets if you directly wnat to send the data to the printer.
I get the dialog box where it tells you that it is preparing the
pages and then you can go shopping, go jogging, swimming,
etc, and if you are back, it is approx. 50% finished. I found
out that the longer your string is you want to print, the longer
it takes to prepare every single page either for printing or
for creating the preview pages. If i have 5 pages it goes fast,
since the string from where it is created is not that long and
if i have string that covers 70+ pages it needs a lifetime to
print them and/or prepare the previews. Is there any way to
improve this. The example seems to be really a "simple"
example, just to show how it can be done. One point is,
that the preview does not show anything on the pages if they
are over 40+ pages long, but if i hit the print button, i get
all data output on the target printer, but the preview does
not show anything. Why?
Two Questions:
1. How can i improve the printing and
preview performance. Even i got a very fast system
it needs really up to 3 minutes to generate the previews
or send the "generated" stuff to the printer.
2. Why does the preview sheets dont show any data?
(on all sheet, but the sheets count is right) and why do i
get all i want out to my printer, though i cant see anything
on my previews?
This is a very unclear situation for me, since i am not
really experinced on .NET printing technologies. I used
to use 3rd-party components until today,...
OS is Windows XP SP3, .NET is 2.0 up2date.
Any help is really appreciated,...
Regards
Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."