public static int ConvertPowerPointToPDF() { string InputFilePath = @"C:\Users\\Desktop\tst1.pps"; string OutputFilePath = @"C:\Users\\Desktop\tst1.pdf"; int Errors = 0; Microsoft.Office.Interop.PowerPoint._Application PPApplication = null; Presentation PPDoc = null; try { // Start an instance of PowerPoint PPApplication = new Application(); ...
Happy Coding