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

Free Support Forum - aspose.com

Problem with Picture in Document

Hello Support,


We are using latest version of “Aspose Words dll” in our project.

We have created a word document with pictures in it. The document is in .docx format. Also we have added few merge fields in it.

Now after executing the codes to replace merge fields when we call the save method all the pictures get removed automatically from the document itself:

string docfileName = string.Format(userFolderPath + “/” + exportFileName + “.doc”); doc.Save(Convert.ToString(HttpContext.Current.Server.MapPath(docfileName)), Aspose.Words.Saving.SaveOptions.CreateSaveOptions(SaveFormat.Doc));

The output here is in .doc format. But if the output is in .docx format picture does not get removed automatically. So is this is an issue or limitation from Aspose Words.

Please let me know further on this.

Thanks,
Somnath

Hi Somnath,


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

  • Your input Word document
  • Aspose.Words 16.2.0 generated output document showing the undesired behavior
  • Please create a standalone console application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.

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

PS: To attach these resources, please zip them and Click ‘Reply’ button that will bring you to the ‘reply page’ and there at the bottom you can include any attachments with that post by clicking the ‘Add/Update’ button.

Best regards,