D
Daniel
Hey altogether.
I have implemented the Visio Drawing Control in a Webpage (aspx) and I want
to script against the visio object. I can save a file (See the example
below). But how can I use the DoCmd-Commands e.g. to realize a print command
or to open the shape window.
<%@ Import Namespace="Microsoft.Office.Interop.Visio" %>
<%@ Import Namespace="Microsoft.Office.Interop.VisOcx" %>
....
<script language="vbscript" type="text/vbscript">
<!--
Sub cmdChangeIt_onClick
axVisio.Window.Application.ActiveDocument.SaveAs("c:\Test123.vsd")
End Sub
-->
</script>
....
<form name="ChangeControls">
<input type="button" name="cmdChangeIt" value="Save">
<input type="button" name="visCmdPrintPreview" value="Druckvorschau">
</form>
....
<OBJECT ID="axVisio" classid="clsid:E4615FA3-23B0-4976-BD3E-D611DDBE330E" >
<param name="NegotiateMenus" value="0">
<param name="NegotiateToolbars" value="0">
<param name="PageSizingBehavior" value="0">
<param name="HostID" value="testHostID">
<param name="Src" value="">
</OBJECT>
....
Best,
Daniel
I have implemented the Visio Drawing Control in a Webpage (aspx) and I want
to script against the visio object. I can save a file (See the example
below). But how can I use the DoCmd-Commands e.g. to realize a print command
or to open the shape window.
<%@ Import Namespace="Microsoft.Office.Interop.Visio" %>
<%@ Import Namespace="Microsoft.Office.Interop.VisOcx" %>
....
<script language="vbscript" type="text/vbscript">
<!--
Sub cmdChangeIt_onClick
axVisio.Window.Application.ActiveDocument.SaveAs("c:\Test123.vsd")
End Sub
-->
</script>
....
<form name="ChangeControls">
<input type="button" name="cmdChangeIt" value="Save">
<input type="button" name="visCmdPrintPreview" value="Druckvorschau">
</form>
....
<OBJECT ID="axVisio" classid="clsid:E4615FA3-23B0-4976-BD3E-D611DDBE330E" >
<param name="NegotiateMenus" value="0">
<param name="NegotiateToolbars" value="0">
<param name="PageSizingBehavior" value="0">
<param name="HostID" value="testHostID">
<param name="Src" value="">
</OBJECT>
....
Best,
Daniel