The Word merge

Technical support for Spire.Doc

Moderator: iceblue support

The Word merge

Postby james » Mon Jan 17, 2011 3:50 am

Once I wanted to merge multiple documents into one. And after it I wanted to get the sequence of the Word documentas merge.
How can I do it with Spire.DOC?
Posts: 8
Joined: Tue Dec 21, 2010 9:29 am

Re: The Word merge

Postby iceblue support » Tue Jan 18, 2011 2:47 am

You may use section.Clone method. You may clone the documents which will be merged, and then add them into the document.
Document documentMerge = new Document();
documentMerge.LoadFromFile(fileMerge, FileFormat.Doc);

foreach( Section sec in documentMerge.Sections)
The order will be ordinal.
e-iceblue support
User avatar
iceblue support
Posts: 244
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests