How do I - invoke a "Visio Cmd" on a shape?

B

BMG Support

How do I - invoke a Visio Cmd on a shape?

I have a fully working visio app. I need to invoke the use display of
the "Format Special" dialog box on a shape. I have a reference to the
shape but am having problems seeing what 'call' will do this.

Any example of invoking other visio "internal commands" on a shape will
do fine. VB or C# is also fine (I work in VC but I can translate as
needed). :)


Many thanks if you can help.
 
R

Roger Pfister

Would you mean this?
Application.DoCmd visCmdFormatSpecial

Perfect, many thanks, I had mistakenly thought that it would
be a function of the shape, but no it is a function of the app.

As my user has had to select this action from one of my menus
the shape in question is already selected so all I have to do
in VC is -


CVisioApplication app;

GetApp( app);

app.DoCmd( visCmdFormatSpecial);


Many thanks again
 

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