Welcome to OpenXML Developer Sign in | Join | Help

How to control the uri and the slide order when adding a new SlidePart

Last post 08-12-2008, 5:22 AM by mastjabs. 3 replies.
Sort Posts: Previous Next
  •  07-11-2008, 6:15 AM 3457

    How to control the uri and the slide order when adding a new SlidePart

    I am trying to add a new SlidePart from a xml file to a existing presentation and I want that slide to be the first of the presentation, the Uri property from SlidePart is read only, so I can't control the order that way.

    Any ideas?

    Thanks in advance.
    Paulo.

  •  07-15-2008, 1:18 AM 3471 in reply to 3457

    Re: How to control the uri and the slide order when adding a new SlidePart

    Hi,

    The order of the slide presentation will be stored in presentation.xml file as

    <p:sldIdLst>

    <p:sldId id="256" r:id="rId2"/>

    <p:sldId id="257" r:id="rId3"/>

    ...

    ...

    </p:sldIdLst>

     

    Change the order of <p:sldId > element and see the difference.

     

    Sheela

  •  07-15-2008, 8:28 AM 3473 in reply to 3471

    Re: How to control the uri and the slide order when adding a new SlidePart

    Ok, so I can assume than after changing the order of the <p:sldId > element and saving the package, the uris always reflect the current order.

    Thanks Sheela.

     

  •  08-12-2008, 5:22 AM 3558 in reply to 3471

    Re: How to control the uri and the slide order when adding a new SlidePart

    hi sheela,

    I am programatically retriving slide ids.Am i right in assuming that by numerically sorting the rID's will give me the correct sequence of slides in the pptx?
    for eg if i obtain
    list=rID4,rID2,rID1,rID8,rID9
    list.sort()
    list=rID1,rID2,rID4,rID8,rID9

    is this assumption right?

    thanks
View as RSS news feed in XML