Power Point Viewer SDK ActiveX

Power Point Viewer SDK ActiveX

Platform : Windows XP, Vista, Windows 7, Windows 8, 10

For Windows Developers who need play the PowerPoint presentation without installed MS PowerPoint.

Popular Solution Go   Back

C# - How to open Powerpoint file immediately?

Step 1: To install the Power Point Viewer SDK ActiveX Control, begin by launching the setup file (http://www.viscomsoft.com/demo/powerpointviewersetup.exe). Select the desired installation folder for the Power Poiint Viewer SDK ActiveX and continue with the installation on your development computer.

Step 2: Installed Microsoft Free PowerPoint Viewer 2010.  

Step 3: Create New Visual C# Project, select Windows Forms Application

Step 4: In Solution Explorer, select References ,right click mouse to select Add Reference... 
Select COM tab, select Power Point Viewer Control SDK

Step 3: Add the following code in Form1.cs

 public partial class Form1 : Form


     PowerPointViewer.PowerPointViewerControl objPPTViewer=null; 


Step 4: In form load event , add the following code

  private void Form1_Load(object sender, EventArgs e)


            objPPTViewer = new PowerPointViewer.PowerPointViewerControl();

            objPPTViewer.Fastmode= true;
            objPPTViewer.Open("c:\\yourfile.pptx", 0, 0, 320, 240);


Step 5 : If you set Fastmode= true, you cannot use GetCurrentSlide and GetSlideCount methods. If you want to use GetCurrentSlide and GetSlideCount methods and open the Powerpoint file faster, you may installed Microsoft Free PowerPoint Viewer 2007 only.