Saving Visio Documents
Your Automation application can also save a document or save a document under a new name through the Save and SaveAs methods of the Document object.
The syntax for the SaveAs method is as follows:
docObj.SaveAs "D:\Book-Macmillan\Routing CH14.VSD"
SaveAs requires only that you pass the name as a fully qualified, quoted path and filename. SaveAs will then save the document referenced to the subject Document object under that name.
The syntax for the Save method is as follows:
docObj.Save
Warning! Invoke the Save method only if the file has been saved at least once before and therefore has a valid fully qualified path and filename. If you invoke the Save method on a new file that has never been saved before, you will ...
Get Professional Development with Visio® 2000 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.