Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Jan 06, 2017 10:18 pm

Hello - I am trying to get the total page count of a .doc/docx file. Do you guys support this or have a property that could be used to gain this?

sprntrbo
 
Posts: 1
Joined: Thu Jan 05, 2017 2:57 pm

Mon Jan 09, 2017 2:37 am

Dear sprntrbo,

Sorry for late reply as weekend.
Please use the GetPageCount method, here is sample code for your reference.
Code: Select all
            document.GetPageCount();

If there is any question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Jan 13, 2017 8:52 am

Dear sprntrbo,

Did you test the code I provided ? Has the issue been resolved ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc