Hi,
I’d like to merge .doc documents but i have a problem with the layout.
The layout of my source document is changed.
In the attachments there are the source document (src.doc) and the result (rslt.doc)
Here my code
Stream packagedStream = new MemoryStream();
Aspose.Words.Document dstDoc = new Aspose.Words.Document(sourceStream, new LoadOptions()
{
LoadFormat = LoadFormat.Doc
});
dstDoc.UpdatePageLayout();
foreach (Stream docStream in StreamList)
{
Aspose.Words.Document srcDoc = new Aspose.Words.Document(docStream, new LoadOptions()
{
LoadFormat = LoadFormat.Doc
});
srcDoc.FirstSection.HeadersFooters.LinkToPrevious(false);
dstDoc.AppendDocument(srcDoc,
ImportFormatMode.KeepSourceFormatting);
dstDoc.UpdatePageLayout();
}
// Save the document.
dstDoc.Save(packagedStream, Aspose.Words.SaveFormat.Doc);
v
What can i do ?
Thank you