Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Image Insert Corrupting the Document

$
0
0

Hi,

I need to insert images in different pages. All the images will be different and it will be inserted in to different location like table cells.

I have tried the example in the MSDN  link -http://msdn.microsoft.com/en-us/library/office/bb497430.aspx

But after inserting the document is getting corrupted. Insertion of one image with the same code works , but i try inserting another image document is getting corrupted. RelationshipID is passed different from addImagePart creates new relationshipID.

I tried opening recovered docuemnt and the corrupted document in Open XMl SDk 2.5 Productivity Tool  and i Could see the images are stored in /media/folder in the corrupted document and /word/media/ in the recovered document. Is this would be the reason for getting corrupted?

Pleas help me with this as i'm stuck with this for some time

I'm using  OS: Windows 8, OpenXMLSDK 2.5 and office 2013

regards,

Swaroop




Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>