472,993 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 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 1407

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Mr. B | last post by:
This is driving me NUTZ!!! I've been screwing around on this for a week now. And I have tried to find examples similar to what I have (nada). Got lots of streaming a TXT file... bah! I am...
by: sachin | last post by:
When we view any document in print preview dialog, where does it save the document? such that when me move to next/previous page where it reads the information from . If a heavy document like RTF...
by: Sachin | last post by:
I have a customized Print Preview dialog made of a Print Preview control. When I increase to zoom property, the document inside it gets enlarged and two scroll bars appear. But when I scroll down...
by: jr | last post by:
Hi, When i use a printPreview it's not the same as the real printout I have a differents in e.Graphics.VisibleClipBounds.Width in the printout the value is 778.67 and in the preview 1398101. ...
by: Nandini | last post by:
Hello Everybody, Can anyone please tell me how to get the printpreview in ASP.NET, just like as in yahoo calendar, I want to show a preview for the particular page. so please help me...
by: Adam Right | last post by:
Hi, I am using .Net Framework 2.0 final, and i use .Net printing library to print a document. I use printPreview dialog to print the document but after preview was shown, when i press the...
by: Adam Right | last post by:
Hi, I am using .Net Framework 2.0 final, and i use .Net printing library to print a document. I use printPreview dialog to print the document but after preview was shown, when i press the...
by: james | last post by:
While trying to help another programmer on MSDN's Visual Basic 2005 Express Edition forum, he (and I ) ran into a strange problem with the PrintPreview Control in VB2005. If you load a document (...
by: Lars | last post by:
I am using Microsoft .NET (2.0) PrintPreviewDialog and all works well when the Windows default printer is set to a local printer or a network printer on a Windows server, but if I set it to a...
by: Stuart Nathan | last post by:
Can someone tell me how to remove a previously loaded PrintDocument in a PrintPreview control, so that I can display a nedw one?
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.