G
Guillaume D.
Hello,
I have an COMException with the message "Requested Operation Is Presently
Disabled" thrown while I am trying to set the Name property of a Shape that I
have just dropped. Here is my peice of code :
' drop a list of master on the active page
Dim result As Short = activePage.DropMany(masterList, xyList, idArray)
' set the name of the shapes
For j = idArray.GetLowerBound(0) To idArray.GetUpperBound(0)
shape = activePage.Shapes.ItemFromID(idArray(j))
shape.Name = "NewName_" & CStr(j)
Next
This does not occur each time, even in the same conditions.
It seems that when the Shape bugs, no property can be set.
Let me know if you had the same problem, or better if you know the solution
Thks,
I have an COMException with the message "Requested Operation Is Presently
Disabled" thrown while I am trying to set the Name property of a Shape that I
have just dropped. Here is my peice of code :
' drop a list of master on the active page
Dim result As Short = activePage.DropMany(masterList, xyList, idArray)
' set the name of the shapes
For j = idArray.GetLowerBound(0) To idArray.GetUpperBound(0)
shape = activePage.Shapes.ItemFromID(idArray(j))
shape.Name = "NewName_" & CStr(j)
Next
This does not occur each time, even in the same conditions.
It seems that when the Shape bugs, no property can be set.
Let me know if you had the same problem, or better if you know the solution
Thks,