ChiliDog007
Technical User
i'm not sure what forum to post this question. but here it is. i have the following code
Private Sub cmdVisio_Click()
Dim shp1Obj As Visio.Shape
Dim shape1 As Visio.Shape
Debug.Print FName
Set VisioApplication = New Visio.Application
Set VisioDocument = VisioApplication.Documents.Open("H:\SAMDrawing\SAMDraw\Test.vsd")
'VisioApplication.Visible = True
Set VisioPage = VisioDocument.Pages.Item(1)
'Change to reflect the path to a image on your system
shape1 = VisioPage.Import("C:\testlogo.bmp")
shp1Obj.CenterDrawing
End Sub
but the problem is that it won't open up the file "C:\testlogo.bmp" it says Visio can't open the file for reading. i have been working on this for 2 days strait. any one know how to load the picture into the visio from vb6?
Private Sub cmdVisio_Click()
Dim shp1Obj As Visio.Shape
Dim shape1 As Visio.Shape
Debug.Print FName
Set VisioApplication = New Visio.Application
Set VisioDocument = VisioApplication.Documents.Open("H:\SAMDrawing\SAMDraw\Test.vsd")
'VisioApplication.Visible = True
Set VisioPage = VisioDocument.Pages.Item(1)
'Change to reflect the path to a image on your system
shape1 = VisioPage.Import("C:\testlogo.bmp")
shp1Obj.CenterDrawing
End Sub
but the problem is that it won't open up the file "C:\testlogo.bmp" it says Visio can't open the file for reading. i have been working on this for 2 days strait. any one know how to load the picture into the visio from vb6?