Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
how can i read pptx file and convert it into xml file using c#.
Posted
Comments
Sergey Alexandrovich Kryukov 12-Feb-13 0:54am    
It depends on what do you want to have in this XML. PPTX is based on XML, too, by the way...
—SA

Hi,

refer below links to read the text from .pptx file.
http://msdn.microsoft.com/en-us/library/office/cc850836.aspx[^]
http://mantascode.com/?p=661[^]
http://stackoverflow.com/questions/8029276/get-text-with-correct-font-from-pptx-with-openxml[^]

once you read the text, then you get the XMLDocument from that string, try below code for that.

C#
StringReader reader = new StringReader(strText);
XmlTextReader xmlReader = new XmlTextReader(reader);
XmlDocument doc = new XmlDocument();
doc.Load(xmlReader);


hope it helps.
 
Share this answer
 
See this thread: How to convert a pptx file to ppt in C#[^]

Cheers,
Edo
 
Share this answer
 
That makes no sense at all. A PPTX file is a PowerPoint 2007 or higher file, which is just a .ZIP file with a bunch of .XML and other resource files already in it. What you ask isn't possible in a way that makes any sense.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900