Click here to Skip to main content
14,639,459 members
Rate this:
Please Sign up or sign in to vote.
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100