Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Custom Action/Task Pane Office 2003 W/O VSTO

24 views
Skip to first unread message

Lusana

unread,
Jun 19, 2007, 12:46:02 AM6/19/07
to
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

Cindy M.

unread,
Jun 19, 2007, 9:55:10 AM6/19/07
to
Hi =?Utf-8?B?THVzYW5h?=,

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 :-)

Tommy Tam

unread,
May 19, 2008, 4:55:10 PM5/19/08
to
>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

Peter Schatz

unread,
Feb 24, 2011, 11:36:09 AM2/24/11
to
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


>> On Tuesday, June 19, 2007 9:55 AM Cindy M. wrote:

>> Hi =?Utf-8?B?THVzYW5h?=,


>>
>> 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 :-)


>> Submitted via EggHeadCafe
>> ASP.NET JSON Cookies and Excel
>> http://www.eggheadcafe.com/tutorials/aspnet/71b3b844-2aef-4350-8611-bacc8827d022/aspnet-json-cookies-and-excel.aspx

0 new messages