Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem using Legends

Status
Not open for further replies.

bhopaltechie

Programmer
Joined
Mar 15, 2003
Messages
8
Location
US

I am facing a problem using Legends; When I drop legends manually the legends get updated on each drop of shape, whereas when I drop it by writing suitable code the legend drops, but doesn't get updated. When after dropping it programmatically, I manually open the Visio document and click Configure Legends, the Legend gets updated. Please let know what is the problem and how to refresh/ update legend.

Thanks and Regards
Karandeep Malik
Novice Visio Developer
 
I tried dropping the legend shape and then running the addon using following code in C++:-

_variant_t name;
name.vt=VT_BSTR;
_bstr_t legend = "lgnd";
name.bstrVal= legend;
IVAddonsPtr addsPtr;
app->get_Addons(&addsPtr);
IVAddonPtr addptr;
addsPtr->get_Item(name,&addptr);
_bstr_t runString = "/cmd=cmd2";
addptr->Run(runString);

Still no use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top