Microsoft KB Archive/188889

{|
 * width="100%"|

Rtffix.exe Corrects Line Numbering in HLP Files

 * }

Q188889

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK)
 * Microsoft Visual Studio versions 6.0, 97
 * Microsoft Word 97 for Windows

-

SUMMARY
When you use RTF files created by Microsoft Word 97, automatic numbered lists all appear as ones (1) in a compiled help file. Rtffix.exe is a file that modifies RTF files so that the Microsoft Help Compiler correctly displays automatic numbered lists created by Microsoft Word 97.

MORE INFORMATION
The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

"Rtffix.exe" Release Date: May-18-2000

For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

"Q119591 How to Obtain Microsoft Support Files from Online Services" Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

Rtffix.exe contains the following files:

  RtfFix.exe RtfFix.cpp RtfFix.dsp RtfFix.dsw RtfFix.opt RtfFix.rc  Resource Test After each item in a numbered list, Microsoft Word 97 inserts an RTF code, "\pard". This code specifies that you want to reset the paragraph formatting to a default setting. Microsoft Word 97 then redefines all of the formatting for the paragraph.

This behavior differs from Microsoft Word 95. Microsoft Word 95 uses "\pard" only on the first element of each list; it then allows the formatting of each subsequent item to inherit the previous item's formatting.

The Microsoft Help Compiler (Hcrtf.exe) incorrectly interprets the new format that Microsoft Word 97 creates for automatic numbered lists. This results in each list item starting with the number one.

To resolve this problem, do one of the following:

 Disable the automatic line numbering in Microsoft Word 97. To do this:

 On the Format menu, click AutoFormat. After the AutoFormat dialog box appears, click Options. Click the AutoFormat As You Type tab. Clear the Automatic Numbered Lists check box.

You can now type in the line numbers manually, and they will be correctly interpreted by the help compiler. Use RtfFix.exe to fix the saved RTF files. RtfFix.Exe fixes RTF files with automatic numbered lists generated by Microsoft Word 97. When compiled into a help file, these lists all appear as ones (1). After you run RtfFix.exe on an RTF file, the numbered lists all appear correctly when compiled into an HLP file. The exception is a list that is not all in one place. Microsoft Word 97 can display a continuous automatic list, even if there are breaks in the middle. However, the help compiler can not. As a result, an automatic list with a break in the middle will start over at one. You should run RtfFix.Exe every time you change a Microsoft Word 97 document with automatic numbered lists.

NOTE: You should back up all RTF files before using RtfFix.Exe. To run the RtfFix.Exe tool, type the following at an MS-DOS command prompt:</ul>