0

I want to access rels file for slide for example "\ppt\slides\_rels\slide1.xml.rels" through open xml C#, how can i do this ?, or is there any property or method that returns these relationships.

Please help.

Sumit Munot
  • 3,748
  • 1
  • 32
  • 51
user8189
  • 79
  • 1
  • 10

1 Answers1

0

Once you open your ppt document in C# code you can use the following way to access the _rels

using(PresentationDocument myDoc = PresentationDocument.Open("yourfilepath",true))
{
    var reqPart = myDoc.Package.GetPart(new Uri("/ppt/slides/_rels/slide1.xml.rels", UriKind.Relative));

}
Flowerking
  • 2,551
  • 1
  • 20
  • 30