Dear Mr. Nelson

H

Helge

Dear Mr. Nelson,

I'm contacting you personally, because I hope you can help me. On 01/30/2008
I posted a question in this forum "Requested operation is presently
disabled", but I haven't received an answer yet.

On 29/01/2007 you wrote to this topic at
http://www.eggheadcafe.com/software/aspnet/29104316/error-message-requested.aspx

"Yes, this is an area where we need to publish more documentation. Not every
Visio command is enabled in every context."

Would it be possible to answer my question below ?

Thank you very much,

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!
 
M

Mark Nelson [MS]

Hi Helge,

I don't know the answer to your question. However, your situation is not
likely related to the newsgroup post you reference. That post describes
using Visio's DoCmd method to directly invoke a User Interface command. You
code below does not involve calling DoCmd.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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