J
joevisio
Hi,
I’m trying to open an existing visio drawing using VB6, below are th
codes:
Dim appVisio As Visio.Application
Dim docsObj As Visio.Documents
Dim docObj As Visio.Document
Dim stnObj As Visio.Document
Dim mastObj As Visio.Master
Dim pagsObj As Visio.Pages
Dim pagObj As Visio.Page
Dim shpObj As Visio.Shape
Set appVisio = CreateObject("visio.application")
Set docsObj = appVisio.Documents.Open("C:\header\Precinct3Col.vsd")
The above code would open visio application and the drawing, but i
would give me the following error “type mismatch”.
Any help with the error would greatly appreciate.
Thanks
Jo
I’m trying to open an existing visio drawing using VB6, below are th
codes:
Dim appVisio As Visio.Application
Dim docsObj As Visio.Documents
Dim docObj As Visio.Document
Dim stnObj As Visio.Document
Dim mastObj As Visio.Master
Dim pagsObj As Visio.Pages
Dim pagObj As Visio.Page
Dim shpObj As Visio.Shape
Set appVisio = CreateObject("visio.application")
Set docsObj = appVisio.Documents.Open("C:\header\Precinct3Col.vsd")
The above code would open visio application and the drawing, but i
would give me the following error “type mismatch”.
Any help with the error would greatly appreciate.
Thanks
Jo