B
banzai256
I'm trying to write a simple VBScript to loop through the files in a
directory and run the SAW object against each of them. I can't create the
Visio.SaveAsWeb object directly - I'd imagine it's because I'm in
scripting-land? - and when I create a Visio.Application or Visio.Invisibleapp
object and grab SaveAsWeb out of the .addons collection none of the methods
work and the .Enabled property is false, see code below. Does anyone know if
there's a way for me to do this in VBScript?
Thanks,
banzai256
--------------------------------------------
Public Sub SaveAsWeb (VisioFile)
Dim vsoApp
Dim vsoSaveAsWeb
Set vsoApp = CreateObject("Visio.Invisibleapp")
Set vsoSaveAsWeb = vsoApp.addons.Item("SaveAsWeb")
WScript.Echo("SaveAsWeb.Enabled = " & vsoSaveAsWeb.Enabled & vbCrLf)
vsoApp.Quit
End Sub
SaveAsWeb ("C:\SaveAsWebTest.vsd")
--------------------------------------------
directory and run the SAW object against each of them. I can't create the
Visio.SaveAsWeb object directly - I'd imagine it's because I'm in
scripting-land? - and when I create a Visio.Application or Visio.Invisibleapp
object and grab SaveAsWeb out of the .addons collection none of the methods
work and the .Enabled property is false, see code below. Does anyone know if
there's a way for me to do this in VBScript?
Thanks,
banzai256
--------------------------------------------
Public Sub SaveAsWeb (VisioFile)
Dim vsoApp
Dim vsoSaveAsWeb
Set vsoApp = CreateObject("Visio.Invisibleapp")
Set vsoSaveAsWeb = vsoApp.addons.Item("SaveAsWeb")
WScript.Echo("SaveAsWeb.Enabled = " & vsoSaveAsWeb.Enabled & vbCrLf)
vsoApp.Quit
End Sub
SaveAsWeb ("C:\SaveAsWebTest.vsd")
--------------------------------------------