This article describes an All-In-One Code Framework sample that is available for download. This code sample includes a step-by-step guide for creating and manipulating a Microsoft Office PowerPoint instance by using Office Automation in Visual C++, in Visual C#, and in Visual Basic.NET.
Difficulty level
Collapse this imageExpand this image
Download information
To download this code sample, click the following link:

Technical overview
The code sample automates Office PowerPoint to perform the following operations in Visual C++, in Visual C#, and in Visual Basic.NET.
- Create an Office PowerPoint instance.
- Create a new presentation.
-
Insert a new slide.
- Add text to the slide.
-
Save the presentation.
- Close the Office PowerPoint instance, and then clean up unmanaged COM resources.
Note For more information about how to create the sample application and how to deploy the sample application, see the Readme.txt file that is included in the download package.
Technology category
- Office Solutions Development
Languages
This code sample involves the following programming languages:
Collapse this tableExpand this table
| Language | Project Name |
| Visual C++ | CppAutomatePowerPoint |
| Visual C# | CSAutomatePowerPoint |
| Visual Basic .NET | VBAutomatePowerPoint |
Prerequisites
- You must run this code sample on a computer that has Office PowerPoint 2007 installed.
- This sample application was created by using Visual Studio 2008 with Service Pack 1 installed.
Tags
- Office Automation PowerPoint
What is All-In-One Code Framework?
All-In-One Code Framework uses code samples in different programming languages to illustrate most Microsoft development techniques. Each code sample is carefully selected, composed, and documented to show common code scenarios. For more information about All-In-One Code Framework, visit the following All-In-One Code Framework Web site:
For more information, visit the following Microsoft Developer Network (MSDN) Web site: