Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Saving final document to multiple files when merge document has multiple section
I am following a technique found in another thread on this site to loop
through the sections in a final merge document to break the document into multiple pieces that relate to a specific customer. The code snippet is below: for (int i = 1; i wordDoc.Sections.Count; i++) { DataRow rowHistory = this.mAppDataSet.History.Rows[(i-1)]; if(rowHistory != null) rowHistory["Notes"] = wordDoc.Sections.Item(i).Range. FormattedText.Text; } This works great for documents that do not have any sections defined by the user - for example, a page break. Is there any way to distinguish between a regular page break and the end of the section for a particular merge record's section? Thanks in advance. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
opening and changing a document by multiple people at the same tim | Microsoft Word Help | |||
How do I open multiple Word 2003 files to display on dual monitors | Microsoft Word Help | |||
Saving multiple files at once to same location | Microsoft Word Help | |||
How can you merge data from multiple source files? | Mailmerge | |||
Mail Merge Final Step in Word 2003 XP | Mailmerge |