Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a multi page word document that I am creating in C# using Interop.Word. I would like to set a range to one page in the document so I can customize each page individually.

What I have tried:

As I add pages to the end of the document, I add a range object beginning at the previous end of the document and ending at the current end of the document. This is awkward and becomes incorrect for all succeeding pages if I change one page.
Posted
Comments
Richard MacCutchan 21-Jan-20 4:37am    
That is the problem with working with active documents, the pages are not fixed items. The only time the concept of a page has any meaning is when the document is formatted for printing, and page and margin sizes are taken into account. Until then it is just a lot of free text.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900