.net - What are some techniques for generating PowerPoint presentations without using Office Automation? -
However, it is possible, how can you go about creating a PowerPoint presentation without using Office Automation Are you
Another option that was not received was mentioned, which were the routes we finally took, they File formats that are unusually supported in Office 2007 and Office XP.
First of all, a generic template file is placed in place of the content that will need to be replaced. Next, a reference to DocumentFormat.OpenXml should be added to the project. The code itself will reference the document format. OpenXml and Document Format.openX Packaging Namespace Finally, the code looks like the following loop via slides:
// presentation presentation document presentation = presentation document. Open (filename, true); // In the presentation foreach, loop through all the slides (slide presentation slides in the presentation. Presentation page. Slide pars) {// Slide XML XML * read out new XML (read); Xml.Load (slide.GetStream ()); // TODO: Save your XML HERIPATION code here // updated slide xml.Save (slide.GetStream ()); } // Save the updated presentation presentation. Stop it ();
Comments
Post a Comment