471,325 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

PrintPreview is very slow and finally Preview-Sheets are empty,...


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,...



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."
Sep 3 '08 #1
0 1324

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by sachin | last post: by
reply views Thread by jr | last post: by
2 posts views Thread by Nandini | last post: by
11 posts views Thread by Adam Right | last post: by
9 posts views Thread by Adam Right | last post: by
reply views Thread by james | last post: by
6 posts views Thread by Stuart Nathan | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.