Link to home
Start Free TrialLog in
Avatar of EnolaKotrotsos
EnolaKotrotsos

asked on

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

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


ASKER CERTIFIED SOLUTION
Avatar of Joanne M. Orzech
Joanne M. Orzech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Awesome!  Glad to have been of assistance!  Thank you.

JOrzech
MS Word MVP