H
Howard Kaikow
MSFT KB article 302896 includes a step by step example demonstrating how to
build an Office COM in VB .NET,
Yesterday, I implemented the example and it works correctly when starting
each of the following Office 2003 apps from the quick launch bar: Access,
Excel, Outlook, Powerpoint and Word. I used VB.NET 2003.
Today, I tried to open an extant Word document.
I tried two docs, one had already existed, the other was just created anew
on the desktop.
When I double clicked on each document, I got an error message from
Microsoft Office Word. The message was:
"The command cannot be performed because a dialog box is open. Click OK, and
then close open dialog boxes to continue."
This error is being caused by the display of either of two message boxes.
One msgbox is in the OnConnection method, the other is in the
OnStartupComplete method.
If I comment out those two message boxes, the Word error does not occur.
This error occurs ONLY if I open an extant Word document using Windows
Explorer or on the desktop.
Error does not occur if I start Word either from Start | Programs, or from
the icon in the quick launch task bar.
The error does not occur with Access, Excel, or Powerpoint.
I searched MSDN and the KB and could not find the error message.
Any solutions?
build an Office COM in VB .NET,
Yesterday, I implemented the example and it works correctly when starting
each of the following Office 2003 apps from the quick launch bar: Access,
Excel, Outlook, Powerpoint and Word. I used VB.NET 2003.
Today, I tried to open an extant Word document.
I tried two docs, one had already existed, the other was just created anew
on the desktop.
When I double clicked on each document, I got an error message from
Microsoft Office Word. The message was:
"The command cannot be performed because a dialog box is open. Click OK, and
then close open dialog boxes to continue."
This error is being caused by the display of either of two message boxes.
One msgbox is in the OnConnection method, the other is in the
OnStartupComplete method.
If I comment out those two message boxes, the Word error does not occur.
This error occurs ONLY if I open an extant Word document using Windows
Explorer or on the desktop.
Error does not occur if I start Word either from Start | Programs, or from
the icon in the quick launch task bar.
The error does not occur with Access, Excel, or Powerpoint.
I searched MSDN and the KB and could not find the error message.
Any solutions?