D
Denis Zavadil
Software being utilized: Microsoft Development Environment 2003 Version
7.1.3088
Microsoft Framework 1.1 Version 1.1.4322
Microsoft Office Visio Professional 2003 (11.3216.5606) - Active X control
I would like to provide Print Preview capability in my application. When
executing:
AxDrawingControl1.Window.Application.DoCmd(Microsoft.Office.Interop.Visio.Vi
sUICmds.visCmdPrintPreview)
I get an exception: System.Runtime.InteropServices.COMException - Requested
operation is presently disabled.
I created a simple test app that loads a .vsd when the form with the ActiveX
control loads. I've added a command button with the Print Preview call and
nothing else. There is absolutely no Visio processing taking place when the
command button is pressed so I see no reason for the operation to be
disabled. This same functionality works properly when executed in Visio
2003 / VBA as:
Application.DoCmd visCmdPrintPreview
I have run into the "Requested operation is presently disabled error" in the
past and have tried things suggested on the newsgroup and have never been
able to solve the problem. Is this a bug in the ActiveX control? Is there
a setting or some means to get around this?
7.1.3088
Microsoft Framework 1.1 Version 1.1.4322
Microsoft Office Visio Professional 2003 (11.3216.5606) - Active X control
I would like to provide Print Preview capability in my application. When
executing:
AxDrawingControl1.Window.Application.DoCmd(Microsoft.Office.Interop.Visio.Vi
sUICmds.visCmdPrintPreview)
I get an exception: System.Runtime.InteropServices.COMException - Requested
operation is presently disabled.
I created a simple test app that loads a .vsd when the form with the ActiveX
control loads. I've added a command button with the Print Preview call and
nothing else. There is absolutely no Visio processing taking place when the
command button is pressed so I see no reason for the operation to be
disabled. This same functionality works properly when executed in Visio
2003 / VBA as:
Application.DoCmd visCmdPrintPreview
I have run into the "Requested operation is presently disabled error" in the
past and have tried things suggested on the newsgroup and have never been
able to solve the problem. Is this a bug in the ActiveX control? Is there
a setting or some means to get around this?