DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Get page count as string.

Open Brown3246 opened this issue 7 years ago • 2 comments

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?

Brown3246 avatar Jul 27 '18 08:07 Brown3246

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.

XceedBoucherS avatar Aug 27 '18 11:08 XceedBoucherS

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.

XceedBoucherS avatar Jan 20 '21 15:01 XceedBoucherS