Microsoft Office Tutorials and References
In Depth Information
Custom Task Pane
Custom Task Pane
Custom Task Panes give us a way to create our own Task Pane and provide Office
users with a common interface to access our solution's features and functionalities.
Users can customize the Task Pane in Microsoft Office Word 2007 application, and
developers can customize Task Panes by programming in .NET using the Visual
Studio 2008 IDE. In this section, we will learn how to program Custom Task Panes.
Remember, as this is available to all Word 2007 users once installed, this is an
application-level customization for Microsoft Office Word 2007.
Using Visual Studio IDE, we can create a multi-featured, integrated user interface
with more interactive and easy-to-access features for Microsoft Office Word
application users. We can create the Task Pane and bind its controls to the
appropriate data sources, and make it interact with the host application. The
Microsoft Office 2007 system applications do not include a built-in interface for
showing and hiding your Custom Task Pane.
Creating a Custom Task Pane for Microsoft Office
Task Pane for Microsoft Office
Pane for Microsoft Office
1. Open Visual Studio 2008 to create a new Word 2007 Add-In template project.
2. Select New Project . Under Office , select 2007 and the select the Word 2007
Add-In project template and name the project as you wish.
3. The solution will be created with all of the supporting files for our
development of a Word solution.
Next, let's add the user control to be used in our Task Pane. Right-click on
the project, and select Add | User Control from the context menu. Name
the user control as UserControl1.cs , and click OK.
Now, in the Custom Task Pane, you are going to implement the calculator
for Microsoft Office Word. Add the labels, textboxes, and buttons required to
build the user interface for the calculator in the user control that you created
in the previous step.