The content type part is completely handles by the API. You don't have access to this part (and actually you can't create it since the part name is an invalid one - by design in the specification). We made it that way for simplicity :-) Hope that decision will make the work easier for developers :p
Julien
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You mean we have to explicitly create app.xml, if I want to create a presentation file programatically. Is app.xl is mandatory and if so is it necessay to assign values to the elements like <Words> <Paragraphs> etc.
Susan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The best to answer this question is to take a look at the specs. The minimal document is normally something like : content types, _rels/.rels, presentation, master, slide, layout and maybe foot notes. Like the structure you wrote. However, a great part of the success of your document, is in the relationship parts. Try to use a document validator (PackageExplorer for example) to confirm the structure and the content of your part. Did you try to use the OOo 3 Open XML capabilities to open your doc ?
I think that the Open XML validator that Microsoft will provide is the best tool they can provide to Open XML developer. I had the same trouble, and it took some time to fiugre out what were the bug in my structure/content.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
App.xml is not a constraint (delete it, without forgotten to remove the relationship in the /_rels/.rels part). If you have one relationship that PPT 2007 can't find (you made a mistake in the relationship part or you forgot to delete a relationship), it will considered as an invalid file ...
Good luck
Julien
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How to create file in word folder of word2007 as: setting.xml, websettting.xml, header1.xml, header2.xml, header3.xml...?
How to modify contents of [Content_Types].xml of word2007 ?
Thanks.
The content type part is completely handles by the API. You don't have access to this part (and actually you can't create it since the part name is an invalid one - by design in the specification). We made it that way for simplicity :-) Hope that decision will make the work easier for developers :p
Julien
Any idea what about /docProps/app.xml in pptx files ? Are they also handled by API ?
Susan
No, the extended props are application specific so we don't handle it in a specific way (like the core props) in the API.
Julien
You mean we have to explicitly create app.xml, if I want to create a presentation file programatically. Is app.xl is mandatory and if so is it necessay to assign values to the elements like <Words> <Paragraphs> etc.
Susan
Normally, app.xml is not mandatory. You can create it but PPT 2007 will be able to consume your document without it.
Julien
I was trying to create a pptx file programatically but is not succeeded till now.
It'll be great if u can tell me what r the mandatory files required.
I was able to create the following structure but was not able to open it in a pptx viewer
/[Content_Types].xml
/_rels/.rels.xml
/docProps/core.xml
/ppt/presentation.xml
/ppt/_rels/presentation.xml.rels
/ppt/slideLayouts/slideLayout1.xml
/ppt/slideMasters/slideMaster1.xml
/ppt/slideMasters/_rels/slideMaster1.xml.rels
/ppt/slides/slide1.xml
/ppt/slides/_rels/slide1.xml.rels
/ppt/theme/theme1.xml
Thanx.
Susan
The best to answer this question is to take a look at the specs. The minimal document is normally something like : content types, _rels/.rels, presentation, master, slide, layout and maybe foot notes. Like the structure you wrote. However, a great part of the success of your document, is in the relationship parts. Try to use a document validator (PackageExplorer for example) to confirm the structure and the content of your part. Did you try to use the OOo 3 Open XML capabilities to open your doc ?
I think that the Open XML validator that Microsoft will provide is the best tool they can provide to Open XML developer. I had the same trouble, and it took some time to fiugre out what were the bug in my structure/content.
I tried to open the pptx file using Microsoft Office PowerPoint Viewer and to check the structure I opened it with winzip.
As you have suggested may be there is some mismatch in the relationship parts. also I haven't created any foot note parts. Let me see that in detail.
Anyway thanks for the clues .. I was trying to figure it out for some time and I thought the problem may be with app.xml
Thanx again.
Susan
App.xml is not a constraint (delete it, without forgotten to remove the relationship in the /_rels/.rels part). If you have one relationship that PPT 2007 can't find (you made a mistake in the relationship part or you forgot to delete a relationship), it will considered as an invalid file ...
Good luck
Julien