Requested Operation Is Presently Disabled

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,
 

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