When combining word documents, I expect each document that is appended onto the previous document to start on new page. In some cases documents are being appended a line after the end of the previous information on the document before it. In the majority of cases it works great but they are a few exceptions were the latter is happening. Do you guys know whats causing this and how it can be resolved?
Sorry i wouldn’t say the documents are seperated by just a line in some cases it could be 1 line or 3 its pretty random.
Heres a snippet of the code i’ve attached a template thats failing with its ouput :
case "Word":
// If all document items are to be output to a single document
if (strOutputDocumentFrequency == "Multi")
{
while (docOutput.Sections.Count > 0)
{
Aspose.Word.Section docSection = docOutput.Sections[0];
docOutput.Sections.RemoveAt(0);
docMulti.Sections.Add(docSection);
}
}
else
{
docOutput.Save(strOutputFile + ".doc",SaveFormat.FormatDocument);
xmlOutput.WriteElementString("File", strOutputFile + ".doc");
}
break;