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.
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.