Solved

printing a multipage document

Posted on 2006-07-24
3
187 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Getting multiple values from a dataset ASP.NET(VB) 3 49
vb.net help 4 29
VB.NET - Error - Object not set in Module 4 33
VB.NET 1 22
This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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