"Requested operation is presently disabled"

H

Helge

I integrated the Visio 2007 ActiveX-Control into a WSS-WebPart.
I build a component that runs in IE and is initialized with the
ActiveX-Control.

For opening a stencil I do:

Page currentPage = m_document.Pages[1];
m_stencil =
m_drawingControl.Document.Application.Documents.OpenEx(stencilFile,
(short)VisOpenSaveArgs.visOpenDocked);
m_stencilWindow = m_document.OpenStencilWindow();
m_stencilWindow.Activate();

Following error occours:

System.Runtime.InteropServices.COMException (0x86DB089A):
Requested operation is presently disabled
in Microsoft.Office.Interop.Visio.DocumentClass.OpenStencilWindow()

It's strange, that everyting works fine outside a WebPart!

Can you help me ?

Thanx!
 

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