This sample shows how to merge several documents into one document. Additionally, a page break can be inserted between the documents.
Important code snippet:
1: serverTextControl1.Selection.Load(Server.MapPath(document), streamType);
' add a page break 2: if(CheckBox1.Checked == true && counter ! = mergeDocs.Count) 3: { 4: serverTextControl1.Selection.Text = "\n\f\n"; 5: }
Documents: document1.doc, document2.rtf, document3.htm
Forced Page Break between documents