Events when hosted in IE

M

Martin

This has been asked before both here and elsewhere on the web, but I can't
see any solutions or answers!

I've successfully put the Visio drawing control onto my asp.net page and
loaded a stencil. However, I cannot attach a javascript or vbscript event to
the shape add event. The following code is what I think is correct, where
VisOcxDrawingControl is the Visio drawing control object.

<script language="VBScript">
Sub VisOcxDrawingControl_Document_ShapeAdded(ByVal Shape)
msgbox("Shape added")
End Sub
</script>

Can anyone help?

Thanks,
Martin
 
M

Martin

New day, new ideas....that work for a change!

<script language="VBScript">
Sub VisOcxDrawingControl_ShapeAdded(ByVal Shape)
msgbox("Shape added")
End Sub
</script>

Good luck,
Martin
 
J

JuneTheSecond

Great and wonderful!!
It is so easy and fine!!
Lot of thanks for the big breakthrough!!
 

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