Reading number of pages in a Word-document (docx)

Post Reply
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Reading number of pages in a Word-document (docx)

Post by driessen »

Hello,

I need to know in my FWH-application how many pages there are in a Word-document (docx).

Does anyone know how to accomplish this?

Thank you very much in advance.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: Reading number of pages in a Word-document (docx)

Post by RAMESHBABU »

Hello Mr.Michel,
I need to know in my FWH-application how many pages there are in a Word-document (docx).
Does anyone know how to accomplish this?

Code: Select all

nPages := oWord:ActiveDocument:ComputeStatistics(wdStatisticPages) // (wdStatisticPages Constant Value is 2)
 
-Ramesh Babu P
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Reading number of pages in a Word-document (docx)

Post by driessen »

Thank you so much.
You are a great help.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Post Reply