user380719
user380719

Reputation: 9903

Can I store custom XML data in an xlsx file using CustomXmlPart?

I am using the OpenXML SDK to manipulate my Excel files.

I'd like to store some custom XML data in the xlsx file (not in the sheet cells) in a way that survives a roundtrip through Excel.

Is it possible to do this with the CustomXmlPart class? Or some other class? If so, how?

Upvotes: 1

Views: 1714

Answers (1)

Todd Main
Todd Main

Reputation: 29153

CustomXmlParts are one way to do it. But here's another set of ways: How can I embed any file type into Microsoft Word using OpenXml 2.0 (Word/Excel = same concept)

Upvotes: 1

Related Questions