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.Cus tomTaskPan e myCustomTaskPane;
and in the ThisAddIn_Startup event I have
myUserControl1 = new MyUserControl();
myCustomTaskPane = this.CustomTaskPanes.Add(m yUserContr ol1, "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
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.Cus
and in the ThisAddIn_Startup event I have
myUserControl1 = new MyUserControl();
myCustomTaskPane = this.CustomTaskPanes.Add(m
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
JOrzech
MS Word MVP