Hi,
I am merging 2 docx files (“cover.docx”,“main.docx”) but the resultant docx loses original format of main.docx (e.g. text is cut-off from right hand side) after the merge.
I am using ImportFormatMode.KeepSourceFormatting when appending docxs.
document.AppendDocument(srcDoc, ImportFormatMode.KeepSourceFormatting);
Please let guide me how to resolve this issue, i have attached all 3 files.MergeIssue.zip (79.3 KB)
Thanks
@HassanNorthbay,
After an initial test with the licensed latest (21.1) version of Aspose.Words for .NET, we were unable to reproduce this issue on our end.
We used the following simple C# code to produce above merged output on our end:
Document document = new Document(@"C:\Temp\MergeIssue\\main.docx");
Document srcDoc = new Document(@"C:\Temp\MergeIssue\\cover.docx");
document.AppendDocument(srcDoc, ImportFormatMode.KeepSourceFormatting);
document.Save("C:\\Temp\\MergeIssue\\21.1-KeepSourceFormatting.docx");
So, we suggest you to please upgrade to the latest version of Aspose.Words for .NET.