Microsoft Office Tutorials and References
In Depth Information
Creating a Project and adding a task dynamically
4. In the ThisAddIn.cs file, write the following program to say Say! Hello World
to all Microsoft Project users:
// Namespace to access Windows Form features
using System.Windows.Forms;
private void ThisAddIn_Startup(object sender, System.EventArgs e)
// Message displayed to all Project 2007 users
MessageBox.Show("Say! Hello World");
On executing this code, a message box containing the text Say! Hello World is
displayed in Microsoft Project, as shown in the following screenshot:
Creating a Project and adding a
task dynamically
MSProject.Project is the main object used for Microsoft Project programming
using VSTO. The MSProject.Project object exposes several project-related
properties, such as the Name property that sets the name of the project, and the
Manager property that assigns the manager name for the project.
Search JabSto ::

Custom Search