how to split a *.pptx file into multiple slide in visual studio 2013 by the help of C#? -
I am able to split a file when using the extension ".ppt" to Text "itemprop =" text "> You * .pptx file can be converted to * .ppt file before splitting it into * .ppt file. Some sample code for your reference: Referred to the link given below: Microsoft.office.interop
System Using; System.Collections.Generic; using System.Text; using PowerPoint = Microsoft.Office.Interop.PowerPoint; using Microsoft.Office.Core; Maspace pptxTOppt {class program {static zero main (string [] args) {PowerPoint.Application app = New PowerPoint.Application (); String source Pptx = @ "c: \ test.pptx"; String Target Ppt = @ "c: \ Test.ppt "; Object Missing = Type.Missing; PowerPoint.Presentation pptx = app.Presentations.Open (sourcePptx, MsoTriState.MsoTrue, MsoTriState.MsoTrue, MsoTriState.msoTrue); Pptx.SaveAs (targetPpt, PowerPoint.PpSaveAsFileType.ppSaveAsPowerPoint4 ); App.Quit (); }}}
Comments
Post a Comment