J
Joseph Burton
I was able to figure out how to reference the shape on the page, but I would
like
to change the color of the shapes background.
In visio you would right click on the shape,
Go to format
click on the fill method
and then chose the color.
I'm trying to do this from code, but can't figure it out.
appVisio = CType(CreateObject("Visio.application"), Visio.Application)
docsObj = appVisio.Documents
docsObj.Open("C:\Documents and Settings\joe\Desktop\JoeDrawing.vsd")
pagsObj = appVisio.ActiveDocument.Pages
pagObj = pagsObj.Item(1)
'point to shape
shpObj = pagObj.Shapes.Item("EmployeeName")
appVisio.Quit()
like
to change the color of the shapes background.
In visio you would right click on the shape,
Go to format
click on the fill method
and then chose the color.
I'm trying to do this from code, but can't figure it out.
appVisio = CType(CreateObject("Visio.application"), Visio.Application)
docsObj = appVisio.Documents
docsObj.Open("C:\Documents and Settings\joe\Desktop\JoeDrawing.vsd")
pagsObj = appVisio.ActiveDocument.Pages
pagObj = pagsObj.Item(1)
'point to shape
shpObj = pagObj.Shapes.Item("EmployeeName")
appVisio.Quit()