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

Free Support Forum - aspose.com

Images not displaying when opening docx file from website

We have been having issues with images in docx files not displaying once opened and saved with ASPOSE 5.2.

Steps to reproduce:
1. Create new docx file with text and an image
2. Opened docuement and then saved with no modifications
3. Placed image on webserver using IIS 6.0
4. Clicked on link on website that links to file, using IE 7
5. When open/save dialog displays, we select Open (If you save then open the problem does not occur)
6. When document opens the image is not show, there is an empty rectangle where the image should be

I compared the document.xml file from the origional file to the new file by extracting with winzip.

The following is different in the files and looks like it could be the cause:

Origional







http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/>

http://schemas.openxmlformats.org/drawingml/2006/main">
http://schemas.openxmlformats.org/drawingml/2006/picture">
http://schemas.openxmlformats.org/drawingml/2006/picture">



































New


m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">






















I replaced that section in the new file with the extract from the old file and the issue is fixed. However doing this is not a good solution as it requires manual intervention after every file is processed.

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I tried the same on my side and it seems that all works fine. Image is displayed correctly. Which version of Aspose.Words are you using? I use the latest version v5.2.1 for testing.

Also please attach your document for testing.

Best regards.

Hi,

I am using version 5.2 of Aspose.Words.

The issue only happens when opening in IE7 from IIS6.

I have attached a sample file that uses both a pict and drawing to render the same image. I have also included a seciton of a screen shot that shows what we see when the issue occurs.

Is there a reason that ASPOSE changes the existing drawing areas into pict areas? Is there an option to stop this from happening?

If you want to arrange for a sample of this to be hosted, can you please email us directly?

Attached screen shot

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. I managed to reproduce this issue. Could you also please attach your source document for testing? (I mean document before processing by Aspose.Words) I will consult with our developers and provide you more information.

Best regards.

Here is the origional file before it was passed through Aspose.

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. I created new issue #5530 in our defect database. We will investigate this issue and provide you more information. Most probably this is some kind of restriction of IE.

Best regards.

The issues you have found earlier (filed as 5530) have been fixed in this update. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />