Solved

printing a multipage document

Posted on 2006-07-24
3
185 Views
Last Modified: 2010-04-23
I am currently printing a multipage document

but on the page I want it to print out for eg. page 1 of 5, page 2 of 5, etc. etc.

I can get it to print page 1, page 2 but i dont know the last page when page 1 and 2 are printed out....
0
Comment
Question by:foobarr
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
jjardine earned 500 total points
ID: 17169472
I am not sure if this will work but I am thinking that you might be able to use a print preview dialog to help solve this problem.   What if you added a global variable to hold the page count.  Then   when the user selects print you create a print preview which may be invisible that will cause the print handlers to fire incrementing your global page count variable.  Then when that is done you actually call the PrintDocument.print and use the new variable in your string for   1 of 5, 2 of 5  etc.  Sounds kind of clunky but it might work.
0
 
LVL 7

Author Comment

by:foobarr
ID: 17169694
I dont want the document to be previewed though, because the document being printed doesn't need to be reviewed before it is sent to the printer...

its wierd when i print

a small gray box appears saying printing 1 of 2, 2 of 2, etc.

if only I could I use that info...
0
 
LVL 14

Expert Comment

by:jjardine
ID: 17170851
if you made the printpreview visible=false it wouldn't show would it?

I am not sure how the gray box knows how many pages.  I assume it probably buffers the print job some how in memory before sending it to the printer.  Sort of the concept with the printpreview but probably  more efficient.  
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now