We help IT Professionals succeed at work.

How to create a custom task pane in Word 2003 and VSTO? CustomTaskPanes does not seem to work.

3,011 Views
Last Modified: 2013-11-10
Goodevening,

I am trying to add a custom task pane to Word 2003. I am using VSTO 2005 SE and C# (vs2005) . However the code from the walkthroughs supplied by various sites from Microsoft give me the same error on the same piece of code.

I do

private Microsoft.Office.Tools.CustomTaskPane myCustomTaskPane;

and in the ThisAddIn_Startup event I have

            myUserControl1 = new MyUserControl();
            myCustomTaskPane = this.CustomTaskPanes.Add(myUserControl1, "My Task Pane");
            myCustomTaskPane.Visible = true;

However I get the error:

"The type or namespace name 'CustomTaskPane' does not exist in the namespace 'Microsoft.Office.Tools' (are you missing an assembly reference?)"      

I created a word 2003 add-in project- so it should add the references automatically am I correct?
CustomTaskPanes is not available in the Microsoft.Office.Tools namespace it seems...

I hope someone can walk me though this getting a custom action pane in word 2003 in c#.
Thank you very much
Kind regards,
Marco Kotrotsos


Comment
Watch Question

Manager, Document Services Center
Top Expert 2004
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Joanne M. OrzechManager, Document Services Center
Top Expert 2004

Commented:
Awesome!  Glad to have been of assistance!  Thank you.

JOrzech
MS Word MVP
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.