DocX
DocX copied to clipboard
Get page count as string.
I want to use the page count somewhere other than a header or footer.
Is there a way of getting the page count as a string which can be put anywhere in the document?
Hi, Using paragraph.AppendPageCount() in a header/footer paragraph will add a placeholder in the ooxml. Once loaded in MS Word, the correct page count will be calculated (by MS Word) and the placeholder will be replaced with the correct page count,
A case has been created in order to investigate on returning the page count as a string.
Hi, v1.9 (which is not released yet) will have an experimental feature, returning the document's Page count. This will only be part of the "Xceed Words for .NET" available here: https://xceed.com/en/our-products/product/words-for-net Thank you.