Re: Programmatically insert Visio pictures
- From: "David Parker" <davidp@xxxxxxxxxxx>
- Date: Sun, 9 Dec 2007 14:35:38 -0000
Not pretty, but a loop with something like the following would work:
Dim shp As Visio.Shape
Dim adn As Visio.Addon
Set adn = Visio.Addons("OrgC11")
'Loop thru your shapes
Set shp = Visio.ActivePage.Shapes("Assistant")
Visio.ActiveWindow.DeselectAll
Visio.ActiveWindow.Select shp, Visio.VisSelectArgs.visSelect
SendKeys "C:\Users\davidp\Pictures\anypicture.jpg{ENTER}", True
adn.Run "/cmd=InsertPicture"
'end loop
"Mark Mayle" wrote in message news:200712615184m_elyam@xxxxxxxxxxxx
I also need to programmatically insert pictures into my Visio (2007) org chart shapes (created with the wizard). Any idea how to do this? I cannot seem to find any information on how and where these are kept or how they can be accessed via the Visio object model. The reply above did not help me achieve this. Maybe I am missing something?
EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
.
- Follow-Ups:
- Re: Programmatically insert Visio pictures
- From: Mark Mayle
- Re: Programmatically insert Visio pictures
- References:
- Programmatically insert Visio pictures
- From: Mark Mayle
- Programmatically insert Visio pictures
- Prev by Date: Re: Visio Drawing Control in Web Page
- Next by Date: Re: Acceptable Visio Modifications
- Previous by thread: Programmatically insert Visio pictures
- Next by thread: Re: Programmatically insert Visio pictures
- Index(es):
Relevant Pages
|