HELP: 2003 Macros with DrawingObject

P

Paul Wallis

Hi,
I've a .Net application which uses the DrawingControl to display visio
documents - works fine...
.... unless the drawing contains Macros which need to run. Investigation
shows the MacrosEnabled property to be false on DrawingControl.

Is it possible for DrawingControl object to open the file (using .src=) and
have the macros run - or has this been disabled in DrawingControl as a
breech of security? Anyone managed to run macros in DrawingControl?

Cheers,
Paul Wallis
 
C

Chris Roth

I'm about 90% sure that VBA/Macros are not enabled for the Drawing Control
in Visio 2003. Security is a big reason for this.

I suppose your code could open drawings in an invisible Visio instance, and
have the macros run, but they wouldn't be able to affect what's in the Visio
control. But the macros could alter a drawing, then the control could load
that drawing thereafter. Sounds pretty kludgey, though.

--
Hope this helps,

Chris Roth
Visio MVP
(e-mail address removed)
 
P

Paul Wallis

Thanks Chris

I think the best idea is to get shot of the VBA and re-code for .NET

Cheers

Paul Wallis
 

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