Application Error Printing from Shortcut Menu in ExplorerID: Q177052
|
When you print a Microsoft Word 97 document from Windows Explorer by right- clicking the document and clicking Print on the shortcut menu, the following error message appears:
The instruction at "0x3000A7C6" referenced memory at "0xFFFFFFFF". The memory could not be "read".
This type of error can occur when the Word document contains code in the
Document_Open event or AutoOpen macro that changes the Visible property of
a menu or toolbar.
Example:
Application.CommandBars("standard").Controls("&open...").Visible = False
To correct this problem, obtain Microsoft Word 97 Service Release 2 (SR-2).
To temporarily work around this problem, use the Delete method rather than
setting the Visible property to False.
For example, you can replace a statement like the following
Application.CommandBars("standard").Controls("&open...").Visible = False
CommandBars("standard").Controls(3).Delete
http://www.microsoft.com/support/supportnet/overview/overview.asp
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem was corrected in
Microsoft Office 97 Service Release 2 (SR-2).
For additional information about SR-2, please see the following article in
the Microsoft Knowledge Base:
Q151261 OFF97: How to Obtain and Install MS Office 97 SR-2
Q154871 Determining If You Are Eligible for No-Charge Technical Support
For more information about the Delete method or setting the Visible
property, click the Office Assistant in the Visual Basic Editor, type
Delete Method or Visible Property, click
Search, and then click to view "Delete Method (Microsoft Office Reference)
or "Visible Property (Microsoft Office Reference)."
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If the Assistant is not able to answer your query, please
see the following article in the Microsoft Knowledge Base:
Q176476 OFF: Office Assistant Not Answering Visual Basic Questions
Q163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon WD97 WORD97 SR2
Keywords : kbcode kbprg kbprint kbdta
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: July 22, 1999