WD97: Error "The RTF file .\<name> Is Corrupted At Offset..."

Last reviewed: March 4, 1998
Article ID: Q164012
The information in this article applies to:
  • Microsoft Word 97 for Windows

SYMPTOMS

When you attempt to compile a Word 97 Rich Text Format (RTF) file in the Help Compiler that ships with Microsoft Visual C++ 4.0 or the Microsoft Visual C++ 4.2 Help Workshop, you may receive the following messages:

   HC4002: Warning:
        The RTF file .\<filename> is corrupted at offset <###>

   HC4005: Warning:
        The .\<filename> help file has not been created.

CAUSE

RTF readers should ignore RTF flags that they do not understand. Word 97 writes a few new RTF flags. The older Help Compilers are not correctly discarding the new RTF flags and are attempting to process them. Since the flags are new, the Help Compiler is failing during the compilation process.

RESOLUTION

This problem is corrected in Help Workshop version 4.03, which is available for download from the Microsoft Software Library:

 ~ Hcwsetup.exe (size: 1596080 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

An updated Help Workshop version 4.02 is available through the following sources:

Microsoft Office 97, Developer Edition.

Microsoft Developer Network - Library - Jan 97

     Updated Microsoft Help Workshop 4.02\HELPSHOP\SETUP.EXE

Microsoft Visual C++ for Windows Version 5
     Emterprise and Professional Editions
     \DevStudio\Vc\Unsupported Tools\Hcw

NOTE: Visual Studio 97 ships the older 4.01 compiler.

MORE INFORMATION

Help Workshop is a program that you use to create Help (.hlp) files, edit project and contents files, and test and report on help files. Help Workshop takes the information in the project (.hpj) file to combine the topic (.rtf) files, bitmaps, and other sources into one Help file that can be viewed using the Microsoft Windows Help program.

Help WorkShop 4.02 will compile help files from RTF written both by the 16- bit versions of Word, such as Word 6.0, and also the 32-bit versions such as Word 7.0 and Word 97.

Help Workshop 4.02 will not compile projects created in the MS-DOS version of the Help Compiler.

A help file created in Help Workshop 4.02 will not run under Windows 3.x because the Help Workshop 4.02 creates 32-bit help files and Windows 3.x is a 16-bit operating environment.

REFERENCES

For additional information about the Microsoft Office 97 Developer Edition, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q162962
   TITLE     : New Features in MS Office 97 Developer Edition Tools


Additional query words: help compiler rtf
Keywords : word97 kb3rdparty kbinterop kbfaq
Version : 97
Platform : WINDOWS
Issue type : kbprb
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 4, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.