Free Support Forum - aspose.com

Image in header not showing on Word 2016 for Mac (compatability mode)

Hi


I’m adding an image to my header with:

builder.InsertImage(headerImage, 520.0, 72.0);

I then added the following options to my Save based on previous posts I found:

Aspose.Words.Saving.OoxmlSaveOptions ooSave = new Aspose.Words.Saving.OoxmlSaveOptions();
ooSave.Compliance = Aspose.Words.Saving.OoxmlCompliance.Iso29500_2008_Transitional;
ooSave.SaveFormat = SaveFormat.Docx;
document.Save(s, ooSave);

This works fine on a PC but if I open it in Word 2016 on a Mac the image in the header doesn’t show until they Save and update the file format?

Anything I can do to prevent this, is there a later version with the appropriate complaince level.

Currently using 14.2.0.0 of Aspose.Words but the latest documentation doesn’t mention any newer compliance options.

Thanks

Simon
Hi Simon,

Thanks for your inquiry. We suggest you please upgrade to the latest version of Aspose.Words for .NET 17.4 and use OoxmlCompliance.Iso29500_2008_Strict. Hope this helps you.

If you still face problem, please attach the following resources here for testing:

  • Your input Word document and image.
  • Please attach the output Word file that shows the undesired behavior.
  • Please share the screenshot of problematic section.
  • Please create a standalone console application (source code without compilation errors) that helps us to 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.

Hi, apologies I thought I’d already replied, this fixed the issue thanks.


Si
Hi Simon,

Thanks for your feedback. It is nice to hear from you that your problem has been solved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.