How to start a Powerpoint presentation using ACT?
Options
![Ayush Kumar](https://us.v-cdn.net/6037473/uploads/userpics/RGJ3E8O4WFAG/n98CYBYJ7H6ZS.jpg)
Ayush Kumar
Member, Moderator, Employee Posts: 419
![Ansys Employee](https://us.v-cdn.net/6037473/uploads/badges/RVRDV39KPJ91.png)
![Solution Developer Community of Practice Member](https://us.v-cdn.net/6037473/uploads/badges/274G8C56SBE6.png)
Answers
-
This can be done by importing
Microsoft.Office.Interop.PowerPoint
library.# Import Powerpoint Lib. import clr clr.AddReference("Microsoft.Office.Interop.PowerPoint") import Microsoft.Office.Interop.PowerPoint as PowerPoint # Create powerpoint application powerpoint = PowerPoint.ApplicationClass() powerpoint.Visible = True # Add presentation to the application presentation=powerpoint.Presentations.Add() # Save the presentation presentation.SaveAs(r"D:\Path\to\myppt.pptx", PowerPoint.PpSaveAsFileType.ppSaveAsDefault)
2