"Can't Create Object" Error with Visio drawing control

J

josh

I'm getting the following exception thrown when trying to get a reference to
a shape on the drawing in the Visio ActiveX control:

System.Runtime.InteropServices.COMException -

Cannot create object.

The drawing control is hosted in a Windows Forms app (.Net 1.1) and the code
I'm using to get a reference to the shape is:


Dim shapeLastModifiedDate As Visio.Shape = oPage.Shapes.Item("DateLastUpdate")

where oPage is the active page. any help would be greatly appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top