V
visDev
I have programmatically placed a data process shapes Shape1 and a cur1ve
connect 2 shape Connect1 on an AxDrawingControl drawingControl1. I wish to
glue the shapes using GlueTo() method, but I get "Inappropriate target
object for this action" error. Here is the code:
Microsoft.Office.Interop.Visio.Cell wireX =
Connect1.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.
VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.
VisRowIndices.visRowXForm1D,
(short)Microsoft.Office.Interop.Visio.
VisCellIndices.vis1DBeginX);
Microsoft.Office.Interop.Visio.Cell nodePinX =
Shape1.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.
VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.
VisRowIndices.visRowXFormOut,
(short)Microsoft.Office.Interop.Visio.
VisCellIndices.visXFormPinX);
wireX.GlueTo(nodePinX);
Will someone help me resolve this problem. I'll really appreciate your help.
Thank you in advance.
--VisDev
url:http://www.ureader.com/gp/1130-1.aspx
connect 2 shape Connect1 on an AxDrawingControl drawingControl1. I wish to
glue the shapes using GlueTo() method, but I get "Inappropriate target
object for this action" error. Here is the code:
Microsoft.Office.Interop.Visio.Cell wireX =
Connect1.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.
VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.
VisRowIndices.visRowXForm1D,
(short)Microsoft.Office.Interop.Visio.
VisCellIndices.vis1DBeginX);
Microsoft.Office.Interop.Visio.Cell nodePinX =
Shape1.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.
VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.
VisRowIndices.visRowXFormOut,
(short)Microsoft.Office.Interop.Visio.
VisCellIndices.visXFormPinX);
wireX.GlueTo(nodePinX);
Will someone help me resolve this problem. I'll really appreciate your help.
Thank you in advance.
--VisDev
url:http://www.ureader.com/gp/1130-1.aspx