Posted September 25, 2014 Hello, I have a code that generates a table of contents on a word document. The code that you see below will generate it on the first page of the word document. I need help with changing the code so that it would generate on the second page of the document. Any help is appreciated. object start = oWord.ActiveDocument.Content.Start;Word.Range rangeForTOC = oDoc.Range(ref oMissing, ref start); Link to comment Share on other sites More sharing options... Link to post Share on other sites More sharing options...
Posted September 25, 2014 Are you able to set it to do a page break before inserting the table of contents? I've never worked with generating word documents with C#, but I suppose that may be a way that could work Link to comment Share on other sites More sharing options... Link to post Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now