c# calculate total of pages in .net

I

ideal ÅŸavran

hello
How can I calculate total of pages before printing the all type of document(.pdf,word,excel,txt...) in a directory with c#.

thank you..
 
B

Brian Cryer

ideal savran said:
hello
How can I calculate total of pages before printing the all type of
document(.pdf,word,excel,txt...) in a directory with c#.

thank you..

Firstly, see Peter's reply as I think he's summed it up quite nicely.

Depending on why you want this, you might find that there are alternatives
available out there already which will do what you want. For instance if you
wanted to know how many pages would be printed for your own benefit before
committing to print then I'd suggest looking at FinePrint (
http://fineprint.com/fp/ ), that lets you preview what you are printing,
giving you the total number of pages, letting you print 2 up, 4 up etc and
the ability to delete pages you don't what.

If on the other hand you really do want your own application to give a total
number of pages, then there is no easy answer.
 
I

ideal ÅŸavran

Thank you for your attention.
Allow users to print documents in my project. USB memory key to display the file or directories users, and the number of pages able to see these files.
such as windows directories but more than the number of pages.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top