C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I try to add picture element to docm document in c# application. Unfortunatly after this i get message document is damaged in part \word\document.xml row:1 column:0. Xml structure document.xml is correct. I using example from this link https://learn.microsoft.com/en-us/office/open-xml/how-to-insert-a-picture-into-a-word-processing-document. Docx document works fine. Problem is docm document. If i remove picture element from docm document , all is fine. Some one of you had similar problem?