Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / February 2006

Tip: Looking for answers? Try searching our database.

Activate Taskpane

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexander Mueller - 13 Feb 2006 15:09 GMT
Hi

i am using action pane controls in vsto 2005 and i'd like to
programmtically change the selected task-pane document,
for example change to "search", "new document", "clipboard"
or whatever.

I know how to hide/show/move the controls, i added to the ActionsPane
and i know how to get a reference to the task-pane itself using sth like:

 Dim cb As Microsoft.Office.Core.CommandBar
 cb = Globals.ThisDocuemnt.ThisApplication.CommandBars("Task Pane")

but it do not know how to change the selection of the Task pane.
I guess it has got something to do with the
CommandBars-Controls-collection, but i am not sure. Any hints very much
appreciated.

Thanks,
Alex
newsreader54@web.de - 21 Feb 2006 20:47 GMT
Alex,

if you have a look into the Word VBA help, you'll find that the Word
object model supplies an access to the Taskpane collection. You may
show the Formatting Task Pane with the following line in the direct
window:

Application.TaskPanes(wdTaskPaneFormatting).Visible = True

You can use the other Task Panes referring to them through the
constants like wdTaskPaneDocumentProtection, wdTaskPaneResearch etc.
However, Word seems to be the only application which allows the direct
access to the different forms of the task pane object. Excel permits
only to declare the entire task pane as an object variable of the type
"Commandbar", and the Powerpoint object knows only a RefreshPane method
for a SmartDocument interface.

It helps if you start the application (e.g. Word, Excel, Powerpoint)
and go to the VBA object browser or the VBA help to search for
keywords, if you plan to program against these applications.

Hope this helps
Peter
Alexander Mueller - 24 Feb 2006 15:24 GMT
newsreader54@web.de schrieb:
> Alex,
>
[quoted text clipped - 18 lines]
>
> Hope this helps

Thanks for your response.
It actually does help :-)

Best regards,
Alex

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.