Access master icons

D

Daniel Moser

Hi there

How can I access the Master's icon from a COM-Addin in Visio 2002?

I've already tried the master's Icon property, but whenever I try to
access the property, an error occurs.

thanks for any help

Daniel
 
C

Chris Roth

You have to use a StdPicture object and then get it from the clipboard. I
used the following to paste the icons into a Word document...

Dim m As Visio.Master
Dim sp As StdPicture

For Each m In ThisDocument.Masters

m.ExportIcon "", visIconFormatBMP, VBA.RGB(255, 255, 255)

' Paste into Word selection
' wrdSel.PasteAndFormat wdPasteDefault

Next

--

Hope this helps,

Chris Roth
Visio MVP
visioguy @ extremely warm mail.com
 
D

Daniel Moser

thanx... but unfortunately, I need the clipboard for other data... but I
solved it with storing the icons in the temp dir and loading them 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