How to call an .exe Add-On with a custom menu....

  • Thread starter msnews.microsoft.com
  • Start date
M

msnews.microsoft.com

Hi;
I have a custom solution developped in visio 2002. There the way of
seting properties of menu is as follows.

menuItemObj.Caption = "Check &Completeness"
menuItemObj.AddOnName = "SetXMLGenerateMenu"
menuItemObj.AddOnArgs = "Validate"
menuItemObj.Enabled = True
menuItemObj.Visible = True


The AddOn used here is an exe file (SetXMLGenerateMenu.exe). But this
doesn't function in Visio 2003. It gives the run time error saying "Script
out of range", when I click on the menu to call the exe. Visio 2003 SDK
defines the way of seting custom menus as follows.

vsoMenuItem.Caption = "&Hello"
vsoMenuItem.AddOnName = "MsgBox ""Hello"""


I tried to use this way as follows to give the AddOn & argument, but then
the menu item is disabled.

menuItemObj.Caption = "Check &Completeness"
menuItemObj.AddOnName = "SetXMLGenerateMenu ""Validate"""
menuItemObj.Enabled = True
menuItemObj.Visible = True


If u have any idea about how to pass arguments & to call exe AddOn please
help me.

Thank you.
regards,
Nadikani.
 

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