S
shailendrasingh823
Hi I want to use a array of selection,because how many will group
will be there I dont know,I want to use that array of selection make
as group one by one .
But I am getting Exception--Requested Operation is presently disabled.
the code what I am using is like that.
string[] AreaArray=null;
Visio.Selection[] SelectionArray=null;
window.SelectAll();
window.DeselectAll();
for loop
{
SelectionArray = new Microsoft.Office.Interop.Visio.Selection[1];
SelectionArray[index] = window.Selection;
SelectionArray[index].Select((Visio.Shape)ArrayofDropShape.GetValue(index),
2);
}
Visio.Shape[] ArrayofGroupshape = new
Visio.Shape[SelectionArray.Length];
for loop
{
ArrayofGroupshape = SelectionArray.Group();////This statement
is giving me exception;
shapeText = ArrayofGroupshape.Characters;
shapeText.Begin = shapeText.End;
shapeText.Text = AreaArray;
}
will be there I dont know,I want to use that array of selection make
as group one by one .
But I am getting Exception--Requested Operation is presently disabled.
the code what I am using is like that.
string[] AreaArray=null;
Visio.Selection[] SelectionArray=null;
window.SelectAll();
window.DeselectAll();
for loop
{
SelectionArray = new Microsoft.Office.Interop.Visio.Selection[1];
SelectionArray[index] = window.Selection;
SelectionArray[index].Select((Visio.Shape)ArrayofDropShape.GetValue(index),
2);
}
Visio.Shape[] ArrayofGroupshape = new
Visio.Shape[SelectionArray.Length];
for loop
{
ArrayofGroupshape = SelectionArray.Group();////This statement
is giving me exception;
shapeText = ArrayofGroupshape.Characters;
shapeText.Begin = shapeText.End;
shapeText.Text = AreaArray;
}