Page 1 of 1

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

Posted: Thu Oct 08, 2020 10:16 pm
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.

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

Posted: Fri Oct 09, 2020 1:33 am
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

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

Posted: Fri Oct 09, 2020 9:05 am
by driessen
Thank you so much.
You are a great help.