RSS

Add a custom taskpane to Word 2010 using C#

17 Oct

Create a VisualStudio project, in the template, select Word2010 Addin:

OfficeTaskPane_A

Word 2010 addin template: Application-level add-ins

Word 2010 document: Document-level customizations

Add a new user control “DemoTaskPaneControl” to the project, and add some controls to it.

OfficeTaskPane_B

Add the code below to the ThisAddIn_Startup() function

OfficeTaskPane_C

Compile and run the project, and you will see a new taskpane shown in MS Word 2010.

OfficeTaskPane_D

To disable the addin in MS Word 2010, go to File > Options > Addins > Manage, and unslect the addin project:

OfficeTaskPane_E

That is it.

 
Leave a comment

Posted by on October 17, 2010 in Dotnet/C#, Programming

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: