This project has moved and is read-only. For the latest updates, please go here.

How can I insert/copy a list within existing document?

May 20, 2014 at 11:43 PM
Edited May 20, 2014 at 11:46 PM
I am new to this tool and I am trying to figure out how to handle list properly. I need to dynamically insert one or more lists into existing document within different location. I cannot find a way to achieve either one of the followings:
  • DocX,InsertList seems only appends to the end of existing document only. I tried with DocX,InsertList(index, list) call and always get System.ArgumentOutOfRangeException ... I used 1 for index value. Current document has 2 lists.
  • Is there a way to insert list between 2 paragraphs (or within a table cell)?
  • If I obtain a numbered list from DocX.Lists() and insert it into existing document, how can I reset the numbering?