Microsoft Office Tutorials and References
In Depth Information
Custom Task Pane
6. Write the program to display the Task Pane and the calculator in Microsoft
Office Word 2007, inside the ThisAddIn.cs file. Let's show the calculator in
the Task Pane of Word 2007.
// Initializing the CustomTaskPane object of the current
private Microsoft.Office.Tools.CustomTaskPane
PacktTaskPaneControl = null;
private void ThisAddIn_Startup(object sender, System.EventArgs e)
// Add the calculator Usercontrol to the TaskPane
PacktTaskPaneControl = this.CustomTaskPanes.Add(new
UserControl1(), "Calculator for Word");
// Make TaskPane visible
PacktTaskPaneControl.Visible = true;
After building the user interface, the user control appears as shown in
the following screenshot; the Custom Task Pane solution output shows
the calculator.
Search JabSto ::

Custom Search