Visio ActiveX and VS2005

H

H Wu

Do anyone know any incompatibality between Visio Active X and Visual Studio
2005? I recently run into a problem where I Hide and Show a Visio ActiveX
Control, I got an exception error "ComException was unhandled". The error
happen when ever u try to access Visio.Window after Hide and Show the Visio
ActiveX Control. Here same codes:
Visio.Page ovPage = m_ovDocument.Pages.get_ItemFromID((int)e.Node.Tag);
m_ovWindow.Page = ovPage;
Put my mouse over m_ovWindow ... I saw couple exception errors:
'((Microsoft.Office.Interop.Visio.WindowClass)(m_ovWindow)).BackgroundColor'
threw an exception of type 'System.Runtime.InteropServices.COMException'
'((Microsoft.Office.Interop.Visio.WindowClass)(m_ovWindow)).BackgroundColorGradient'
threw an exception of type 'System.Runtime.InteropServices.COMException'
 

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