R
rusty.brackett
I have the Visio 2003 Drawing Control embedded in a WinForm app. I am
attempting to display the layer dialog (the one from the shape context
menu (R Click shape then Format | Layer...). I need to do this
programmatically and haven't had any success. I have been able to
launch other Visio dialogs without any problems (including the "Layer
Setup" dialog (visCmdLayerSetupDlg) on the main menu via [View | Layer
properties...]) so I am pretty sure all my Visio objects are
initialized properly.
Here is how I am calling the method:
Application visioApp = axDrawingControl1.Document.Application;
visioApp.DoCmd((short)VisUICmds.visCmdLayerDlg);
The error I am receiving is:
"Requested operation is presently disabled."
Can anyone tell me what I am doing wrong? Has anyone been able to get
this to work?
Thanks,
Russell
attempting to display the layer dialog (the one from the shape context
menu (R Click shape then Format | Layer...). I need to do this
programmatically and haven't had any success. I have been able to
launch other Visio dialogs without any problems (including the "Layer
Setup" dialog (visCmdLayerSetupDlg) on the main menu via [View | Layer
properties...]) so I am pretty sure all my Visio objects are
initialized properly.
Here is how I am calling the method:
Application visioApp = axDrawingControl1.Document.Application;
visioApp.DoCmd((short)VisUICmds.visCmdLayerDlg);
The error I am receiving is:
"Requested operation is presently disabled."
Can anyone tell me what I am doing wrong? Has anyone been able to get
this to work?
Thanks,
Russell