Connecting Tech Pros Worldwide Forums | Help | Site Map

Count number of pages of doc, xls and ppt files

Newbie
 
Join Date: May 2007
Posts: 4
#1: May 23 '07
Hey guys,

Does anyone of you know how to count the number of pages that a doc, xls and ppt would print?

My objective is to count this number of pages and charge the user per number of pages printed!

Thanks in adv.

bartonc's Avatar
Moderator
 
Join Date: Sep 2006
Location: Minden, Nevada, USA
Posts: 6,400
#2: May 23 '07

re: Count number of pages of doc, xls and ppt files


Quote:

Originally Posted by thvferrari

Hey guys,

Does anyone of you know how to count the number of pages that a doc, xls and ppt would print?

My objective is to count this number of pages and charge the user per number of pages printed!

Thanks in adv.

On Windows, the win32com.client module acts just like VB, so you can get that info from the application (Word, Excel or Power Point) after it has opened the document just as you would in VB. [I don't know any VB, so I'm no help there.]
Newbie
 
Join Date: May 2007
Posts: 4
#3: May 23 '07

re: Count number of pages of doc, xls and ppt files


Quote:

Originally Posted by bartonc

On Windows, the win32com.client module acts just like VB, so you can get that info from the application (Word, Excel or Power Point) after it has opened the document just as you would in VB. [I don't know any VB, so I'm no help there.]


Thanks bartonc!! I going to google for it, just need a hint!
Reply