Search code examples
openxml-sdkopenxml

How to retrieve Open XML Relationships?


I'm using the Open XML SDK 2.0 to open an Excel file.

When I open the .rels file (from the .xlsx/.zip) I can see all the relationships defined.

How can I get a list of these relationships in code?


Solution

  • SpreadsheetDocument.Parts and WorkbookPart.Parts