MSWORD VB.NET

S

Sivaram

Hi i am Newbie i developed a application in vb.net... Now when user
install my application button must be automatically added to MS Word
application in toolbar...when user clicks that button then my exe file must
run..how can i do these ...Plz Give Some Ideas,Suggestions ,Links Plz..
 
A

alborg

Hi Sivaram:

You might wish to check this vb.net page that discusses vb.net toolbars-

http://www.informit.com/articles/article.aspx?p=25741

If you wish to keep it inside MS Word, use VBA code that would look
something like this-

Dim mybar, mybar2
Set mybar = CommandBars("Custom 2")
Set mybar2 = CommandBars("switchboardmain")
mybar.Visible = True
mybar2.Visible = True

It can be placed in the Microsoft Word Objects -> ThisDocument section of
the Visual Basic coding area of your template.

Cheers,
Al
 

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