How to Launch Clip Organizer?

T

Tosh

I'm hosting the Visio Drawing Control (VCD) in a C# windows form. I need to
give the user the ability to insert ClipArt into the drawing. Visio has the
menu option Insert | Picture | ClipArt, which opens the Clip Organizer
window, and from there the user can pick something and add it to the drawing.

How can I programmatically open the clip organizer? I tried using the
command VisUICmds.visCmdInsertClipArt, but it didn't work, and I'm thinking
that is the command that is sent after a Clip Art image has been selected.

I also tried recording a macro will doing the Insert | Picture | Clipart and
selecting an image, but it didn't record anything.
 
P

Paul Herber

I'm hosting the Visio Drawing Control (VCD) in a C# windows form. I need to
give the user the ability to insert ClipArt into the drawing. Visio has the
menu option Insert | Picture | ClipArt, which opens the Clip Organizer
window, and from there the user can pick something and add it to the drawing.

How can I programmatically open the clip organizer? I tried using the
command VisUICmds.visCmdInsertClipArt, but it didn't work, and I'm thinking
that is the command that is sent after a Clip Art image has been selected.

I also tried recording a macro will doing the Insert | Picture | Clipart and
selecting an image, but it didn't record anything.

I've just done the above command, it works fine.
What is the full line of cose you used?
I used
VSL.visApp.DoCmd(visCmdInsertClipArt);
but that's in Delphi, same stuff should apply.
 

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