We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Document format is missing while inserting a new document

Hi Team,
I’m inserting a source document into another document while doing this formatting is loss, please check the below code.

Document destDocument = new Document(DefaultTemplate.ToString());
DocumentBuilder builder = new DocumentBuilder(destDocument);
Document srcDocument = new Document(SourceFile);
builder.InsertDocument(srcDocument, ImportFormatMode.UseDestinationStyles);
destDocument.Save(OutputFileName + ".docx",AsposeDoc.SaveFormat.Docx);

Source document format is applying to the final saved document, but we need destination document format as it is. Please help me on this.

@Augustin502

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word documents.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.