Create two files and compare the differences:

 (1) open .potx in PowerPoint, modify and save as .pptx
 (2) do the same with POI

Unzip both file and see what parts of XML differ. The should give you a clue.

Yegor

On Thu, May 24, 2012 at 11:51 AM, Pablo Rivera | MediaSquare
<[email protected]> wrote:
> I'm doing exactly what you meant, create a XMLSlideShow opening a potx
> file, getting it master and layout slides and use them to create a full
> slideshow.
>
> I tried your trick but I had the same result at Powerpoint.
>
> If you have some idea for solve it, please reply. If not don't worry, it
> isn't critical use potx :)
>
> Thanks!
>
>
>   -
>   - *Pablo Rivera*
>   - Software Engineer
>   -
>   - [email protected]
>   - T:(+34) 902 10 83 84
>   -
>      -
>   - www.mediasq.com
>
>
>
>
> 2012/5/22 Yegor Kozlov <[email protected]>
>
>> Can you provide more details what you are doing?
>>
>> Are you opening a .potx file, modify it with POI and save as .pptx ?
>>
>> If so, one important step is required: you need to replace potx
>> content type with pptx:
>>
>> ppt.getPackage().replaceContentType(
>>
>>  "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml",
>>
>>  "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml");
>>
>> Without it PowerPoint won't recognize the file.
>>
>> Yegor
>>
>> On Tue, May 22, 2012 at 6:12 PM, Pablo Rivera | MediaSquare
>> <[email protected]> wrote:
>> > Hi,
>> >
>> > I want to apply the master and layout slides of a potx file to a pptx.
>> If I
>> > create a XMLSlideShow passig it the potx file it works in LibreOffice,
>> but
>> > MS Office 2010 cant open it. If I save the potx as a pptx everything goes
>> > OK, but if it is possible I'd prefer the elegant way with potx :)
>> >
>> > What should I do?
>> >
>> >
>> >   -
>> >   - *Pablo Rivera*
>> >   - Software Engineer
>> >   -
>> >   - [email protected]
>> >   - T:(+34) 902 10 83 84
>> >   -
>> >      -
>> >   - www.mediasq.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to