Solved

printing a multipage document

Posted on 2006-07-24
3
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

710 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