A
alon.albert
I am working on a small Visio Addon where I added a DocumentOpened
event handler that needs to iterate all the shapes.
Whenever I access doc.DocumentSheet.Shapes however, I get the following
exception:
Exception: System.Runtime.InteropServices.COMException (0x86DB089B):
Cannot create object.
at Microsoft.Office.Interop.Visio.ShapeClass.get_Shapes()
at Tutorial.Connect.onDocumentOpened(Document doc) in
q:\visiotest\tutorial\connect.cs:line 70
Any ideas? Other things like adding attributes to the shape when it is
dropped seem to work fine.
event handler that needs to iterate all the shapes.
Whenever I access doc.DocumentSheet.Shapes however, I get the following
exception:
Exception: System.Runtime.InteropServices.COMException (0x86DB089B):
Cannot create object.
at Microsoft.Office.Interop.Visio.ShapeClass.get_Shapes()
at Tutorial.Connect.onDocumentOpened(Document doc) in
q:\visiotest\tutorial\connect.cs:line 70
Any ideas? Other things like adding attributes to the shape when it is
dropped seem to work fine.