Custom Action/Task Pane Office 2003 W/O VSTO

L

Lusana

Id like to write some code in C# that does the following. I have already done
this in office 2007 without VSTO, am now in need to do this for Office 2003
WITHOUT VSTO, unfortunately have not been able to find anything useful.

1. Toolbar button -> onClick-> CustomTaskPane (Control/Form) made visible

pretty simple huh.. I already have toolbar button and onclick implementation.
I dont need any smart tags. I just need a very simple -> CTP.visible = true

any direction on this would be appreciated
Lusana
 
C

Cindy M.

Hi =?Utf-8?B?THVzYW5h?=,
Id like to write some code in C# that does the following. I have already done
this in office 2007 without VSTO, am now in need to do this for Office 2003
WITHOUT VSTO, unfortunately have not been able to find anything useful.

1. Toolbar button -> onClick-> CustomTaskPane (Control/Form) made visible

pretty simple huh.. I already have toolbar button and onclick implementation.
I dont need any smart tags. I just need a very simple -> CTP.visible = true
Unfortunately, it's simply not possible. Custom task panes were introduced in
Office 2007; they're not available for any earlier version.

In earlier versions you can use a CommandBar, or a WindowsForm. You can even
experiment with putting a Windows Form over an anchored CommandBar to simulate a
task pane. (A task pane is actually a commandbar with controls on it, but in
2003 the only thing exposed to the developer is the SmartDocument Actions Pane,
which VSTO document-level solutions leverage.)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
T

Tommy Tam

In earlier versions you can use a CommandBar, or a WindowsForm. You can >even
experiment with putting a Windows Form over an anchored CommandBar to >simulate a
task pane. (A task pane is actually a commandbar with controls on it, >but in
2003 the only thing exposed to the developer is the SmartDocument >Actions Pane,
which VSTO document-level solutions leverage.)

Anyone has any luck with anchor commandbar with Windows Form approach? I am unable to add msoControlPane. As describe in MSDN, only popup menu and 4 other types are supported in,
CommandBar.Controls.Add()

For example, the following code would not be able to compile,
Office.CommandBarControl MyButton;
MyButton = commandbar.Controls.Add(Office.MsoControlType.msoControlPane , missing, missing, missing, true);

Thanks,
Tom
 
P

Peter Schatz

I'm looking for a way to write custom task panes and other add-in functionality without using vsto. Can you give me any sample code or point me to useful links.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top