You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the following code to open WordprocessingDocument from MemoryStream and then get the page size of the document, but it always returns the value 1, which is incorrect as the document contains 11 pages.
That value is not guaranteed to be correct. In fact, it often will be incorrect. This is one of the issues with Open XML - determining pagination is a big job. (This is true for other document formats, including ODF, not just XML.) Currently, Microsoft's advice is that if you need exact pagination information, you should automate Word.
I am using the following code to open WordprocessingDocument from MemoryStream and then get the page size of the document, but it always returns the value 1, which is incorrect as the document contains 11 pages.
The text was updated successfully, but these errors were encountered: