Requested operation is presently disabled

T

TKN

When I delete the custom shape, and add a new custom shape, it not allow me
to change custom property: Here is my code
If (viTimeMode = Constants.TimeMode.Episodes) Then

vshapeCustomPropertyShape.CellsSRC(Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionObject,
Microsoft.Office.Interop.Visio.VisRowIndices.visRowLock,
Microsoft.Office.Interop.Visio.VisCellIndices.visLockTextEdit).FormulaForceU
= "False"
If (CInt(lsPropertyValue) > 1) Then
vshapeCustomPropertyShape.Text =
ReadANamedCustomProperty(vshapeCustomPropertyShape, TILTE_PROP) & " (" &
lsPropertyValue & " Eps)"
Else
vshapeCustomPropertyShape.Text =
ReadANamedCustomProperty(vshapeCustomPropertyShape, TILTE_PROP) & " (" &
lsPropertyValue & " Ep)"
End If

vshapeCustomPropertyShape.CellsSRC(Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionObject,
Microsoft.Office.Interop.Visio.VisRowIndices.visRowLock,
Microsoft.Office.Interop.Visio.VisCellIndices.visLockTextEdit).FormulaForceU
= "True"
End If
Please Have any ones can help me?

Thanks

Tam
 
N

Niranjan

Tam,

Are you trying to do this inside some visio event handler like document
delete? If so, you can try adding the custom shape and property in Visio
Application's "Idle" event.

HTH,

Niranjan
 

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