The PowerPoint sample application demonstrates how to start PowerPoint, create a blank presentation, add a slide and content, print slides, save your changes, and exit PowerPoint from within a Visual Basic application.
To get samples and instructions for installing them
Security Note: |
|---|
|
This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Microsoft provides this sample code "AS IS" with no warranties.
|
To run the sample
In Solution Explorer, open PowerPointlAuto.sln.
Press F5.

Requirements
This sample requires that your computer have the following applications installed:
Visual Studio 2005 with Service Pack 1, or Visual Studio 2008
Microsoft Office Excel 2007
Microsoft Office PowerPoint 2007

Demonstrates
The sample consists of a solution named PowerPointAuto.sln that contains a single project: PowerPointAuto.vbproj. This project is a Windows-based application that has a single form that remotely controls PowerPoint.
When the PowerPointAuto application runs, it opens a single form that has buttons for automating PowerPoint.

See Also