By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,118 Members | 1,133 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,118 IT Pros & Developers. It's quick & easy.

Printing document - getting number of total pages

P: n/a
Hi all;

I have one small app. written in vb.net and somewhere i create one
document which can be printed using one printdialog.

Before printing it, i want to advise user's from the number of pages
of the document giving them a chance to cancel the printing operation
if they want to.

How can it be done? I've tryed searching in PrintDialog,
PrintDocument, PreviewPrintController and PreviewPageInfo and didn't
found anything about it! I've done some google search and no one seems
to have this problem. Is there some way to workaround this or do i
have to use some Windows API? If so, which API and how can i use it?

I think i'm missing something here! It seems very obvious to me.

Please help or point me to the right direction!

Thanks in advance!
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Pedro" <pn**@portugalmail.pt> schrieb:
I have one small app. written in vb.net and somewhere i create one
document which can be printed using one printdialog.

Before printing it, i want to advise user's from the number of pages
of the document giving them a chance to cancel the printing operation
if they want to.

How can it be done? I've tryed searching in PrintDialog,


It cannot be done without first rendering the whole document onto a print
preview, for example. How would you determine how much money is in a
moneybag without taking a look into it :-)?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.