• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Opening Visio Documents

Earlier we looked at how to begin a new Visio diagram either based on a specific template or based on a totally blank document. There will, however, be times that your Automation application will want to open and access a Visio diagram that has already been created and stored either on the user's local hard drive or some other location accessible to the user's network. Opening a Visio diagram via Automation is a straightforward process. Look at the following code:

Public Sub OpenTheExistingDrawing()
    Dim docsObj As Visio.Documents
    Dim docObj As Visio.Document
    Set docsObj = Visio.Documents
    Set docObj = docsObj.Open("d:\Book-Macmillan\Routing CH14.VSD")
End Sub


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint