Microsoft Office Tutorials and References
In Depth Information
PowerPoint 2007 object model
4. Enter using System.Windows.Forms; as the namespace for the message
box feature.
5. In the ThisAddIn.cs file, write the following code to say Hello to all the
Microsoft Office PowerPoint users:
private void ThisAddIn_Startup(object sender, System.EventArgs e)
// Message box to display information from PowerPoint
MessageBox.Show("Say Hello! to PowerPoint Users");
The results of executing this simple program can be seen in the
following screenshot:
PowerPoint 2007 object model
The object models available in VSTO help PowerPoint Office developers to program
against the existing functionality. At first glance, the object models may give the
impression of being difficult to understand. On the contrary, it is one of the easiest
ways to conceptualize PowerPoint 2007 programming. The object model is a
visualization of how every object in PowerPoint is related to the properties of
objects. By accessing the objects through the commands, you can manipulate
these with VSTO code, programmatically.
Search JabSto ::

Custom Search