Microsoft KB Archive/300271

= WD2000: Error Message When You Run Code Sample to Export Word Document to XML =

Article ID: 300271

Article Last Modified on 6/13/2001

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition
 * Microsoft Word 2002 Standard Edition

-



This article was previously published under Q300271



SYMPTOMS
When you run the Microsoft Office Code Sample - Export a Microsoft Word Document to XML, you may receive one of the following error messages:

Memory exception

-or-

Unregistered OCX



CAUSE
This issue occurs because some of the components necessary for the program to run are missing, outdated, or older than the ones used to compile the VB project.



RESOLUTION
To resolve this issue, open the VB Project in Microsoft Visual Basic and recompile the executable file. To do this, follow these steps:
 * 1) Start Microsoft Visual Basic 6.0.
 * 2) Open the Word2XML.vbp project.
 * 3) Run the program from within Visual Basic.
 * 4) Recompile the executable file by choosing Make Word2XML.exe on the File menu.
 * 5) Close Visual Basic and run the new executable file.

NOTE: Instructions for running this utility also are available in the WordXMLdefault.htm file that is downloaded with the executable file.



MORE INFORMATION
Word2XML is a code sample that demonstrates one way to convert a Microsoft Word document into an XML format. As stated in the End-User License Agreement, no technical support is provided for this product.

Word2XML can be obtained from the MSDN Library at http://msdn.microsoft.com/Library/default.asp. It is listed under Technical Articles, Microsoft Office and Visio, Microsoft Office 2000, Microsoft Word 2000, Export a Word Document to XML. The download file is ExpWordtoXML.exe.

This download works with Word 2000 and Word 2002.

Keywords: kberrmsg kbprb KB300271

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.