Usage of GlueTo() method.

V

visDev

I posted this problem earlier too, but am yet t get a solution. If you have
any suggestion please help me. The problem is as follows:

I programatically placed a data process shapes Shape1 and a connect 2 shape
Connect1 on an AxDrawingControl drawingControl1. I want 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
 

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