Greetings all,
I hope this is the correct forum for this automation question.
I have MS Access 2003 and MS Visio 2003 I have tried ever help doc I could find. I can run Visio but my existing file will not open. Below is my last attempt:
Public Sub PrgVisio()
Dim mydoc As Object
Set mydoc = GetObject("C:\ProgWS\Automation_prg\Guest Part.vsd")
End Sub
I get an error Run-time error '432';
File name or class name not found during Automation operation.
I have the following references:
Visual Basic For Applications
OLE Automation
MS Access 10.0 Object Library
MS Visio 11.0 Drawing Control Type Library
MS Visio 11.0 Type Library
MS Visio Viewer 10.0 Type Library
And the file and path are correct for the GetObject.
Why does this code just not open the file? And how can I print the document after it opens?
I hope this is the correct forum for this automation question.
I have MS Access 2003 and MS Visio 2003 I have tried ever help doc I could find. I can run Visio but my existing file will not open. Below is my last attempt:
Public Sub PrgVisio()
Dim mydoc As Object
Set mydoc = GetObject("C:\ProgWS\Automation_prg\Guest Part.vsd")
End Sub
I get an error Run-time error '432';
File name or class name not found during Automation operation.
I have the following references:
Visual Basic For Applications
OLE Automation
MS Access 10.0 Object Library
MS Visio 11.0 Drawing Control Type Library
MS Visio 11.0 Type Library
MS Visio Viewer 10.0 Type Library
And the file and path are correct for the GetObject.
Why does this code just not open the file? And how can I print the document after it opens?