Hello,
I’m having an issue pulling an accurate page count from an OoxmlCompliance.Iso29500_2008_Transitional Document. It says that there are only 3 pages, when in fact there are 4.
Here’s the code I ran, directly to get this output through Visual Studio’s intermediate window:
component.UpdateTableLayout()
Expression has been evaluated and has no value
component.UpdatePageLayout()
Expression has been evaluated and has no value
component.UpdateFields()
Expression has been evaluated and has no value
component.Compliance
Iso29500_2008_Transitional
component.PageCount
3
component.Save("c:\\TEMP\\Component.docx")
{Aspose.Words.Saving.SaveOutputParameters}
ContentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
I also verified that re-importing the document still yields a page count of three.
And attached is my document. As you can clearly see in the document, there is one table row and the repeated header on the last page. In my hopes to work around this, I also tried saving a pdf version, but that showed up as 3 pages and does not match the document. Both are in the zipped file.
Files.zip (69.3 KB)
I also just upgraded to .Net 17.8 to try and get better results without luck!
This is also a cascading issue, this is part of a bunch of documents that are appended together, and the inaccurate page counts are reflected in the Table of Contents field. The document after this show as being on page 17, despite actually being on page 18, which makes our compiled document seem unprofessionally inaccurate.
Please help!
-Ben