Justin185 Posted April 28, 2009 Share Posted April 28, 2009 (edited) Hi all, I'm new here, trying to use autoit to convert many .vdx (visio xml file) to html. found how to do it in aspx but I don't have asp server and I only want it be on my computer. aspx code: // Call Visio to save the XML file to a web page. VisioDotNet.Application app = new VisioDotNet.ApplicationClass(); app.Documents.Open(VisioFileNm); app.Addons.get_ItemU("SaveAsWeb").Run( "/quiet=True /openbrowser=False /target=" + Request.PhysicalApplicationPath + "VisioDiagram"); app.Quit(); ============================================================ can anyone give me a hint how should I do it using autoit? please. Edited April 28, 2009 by Justin185 Link to comment Share on other sites More sharing options...
Justin185 Posted April 28, 2009 Author Share Posted April 28, 2009 Anyone? any idea? Please... Link to comment Share on other sites More sharing options...
WideBoyDixon Posted April 28, 2009 Share Posted April 28, 2009 In the (almost) words of the Thomson Twins, you've got COM, COM, COM on your side. Global $oVisio = ObjCreate("Visio.Application") $oVisio.Visible = True Global $oVSD = $oVisio.Documents.Open("[path to vsd]") $oSAW = $oVisio.Addons.ItemU("SaveAsWeb") $oSAW.Run("/quiet=True /openbrowser=False /target=""[path to html]""") $oVisio.Quit I hope it isn't necessary but I'm going to say it anyway. Please replace [path to vsd] and [path to html] with some proper values. WBD [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
Justin185 Posted April 29, 2009 Author Share Posted April 29, 2009 In the (almost) words of the Thomson Twins, you've got COM, COM, COM on your side. Global $oVisio = ObjCreate("Visio.Application") $oVisio.Visible = True Global $oVSD = $oVisio.Documents.Open("[path to vsd]") $oSAW = $oVisio.Addons.ItemU("SaveAsWeb") $oSAW.Run("/quiet=True /openbrowser=False /target=""[path to html]""") $oVisio.Quit I hope it isn't necessary but I'm going to say it anyway. Please replace [path to vsd] and [path to html] with some proper values. WBD AWESOME!!! you are excellent, it works !! Thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now