Insert a picture

P

Papp

hi

Is there any way to insert a picture from a visual basic application
into a visio document by automation (using "Microsoft Visio 12 Type
Library")?

I tried to insert images by InsertFromFile but it creates a non
removable subtitle :(

I tried to embed an Image (OLEObject) into a document and change its
picture property, failed.



Set OLEToolImage.Object.Picture = RHS

results

Run-time error '-2147418113 (8000ffff)'
Method 'Picture' of object 'IImage' failed

Thanks for any help
 
J

JuneTheSecond

As in case of VBA, it is
Application.ActivePage.Import "C:\Picture.jpg" .
So in case of VB.net it might be
.....Visio.application.ActivePage.Import "C:\Picture.jpg" .
 
P

Papp

ThJuneTheSecond írta:
As in case of VBA, it is
Application.ActivePage.Import "C:\Picture.jpg" .
So in case of VB.net it might be
....Visio.application.ActivePage.Import "C:\Picture.jpg" .

Thank you very much

It works I'm very glad :)
 

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