Microsoft KB Archive/160931

= WD: "Error! Style Not Defined" When Printing File =

Article ID: 160931

Article Last Modified on 8/17/2005

-

APPLIES TO


 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition

-



This article was previously published under Q160931



SYMPTOMS
In Word 6.x or 7.x, the following error message appears when you attempt to print or preview a Word 97 document:

Error! Style not defined. Error! Bookmark not defined.



CAUSE
The Seq and StyleRef fields contain switches that are not supported in Word 6.0 or 7.0. Specifically, all Seq fields contain a \s 1 switch, and the StyleRef field contains a \s switch.



RESOLUTION
To resolve this problem, upgrade to the latest version of the Word 97-2000 Import Converter. For additional information, please see the following article in the Microsoft Knowledge Base:

162214 WD: How to Obtain the Word 97-2000 Import Converter

To temporarily work around this problem, follow these steps:  Open the Word 97 document in Word 6.0 or Word 7.0. On the Format menu, click Heading Numbering. Select the heading numbering style you want to use, and then click OK. Click Yes when you receive the message that Word is removing bullets and numbering. Turn on view field codes by pressing ALT+F9. The field codes used for the caption look similar to this:

Figure {STYLEREF 1 \s}-{SEQ Figure \* Arabic \s 1}

 On the Edit menu, click Replace. In the Find What box, type "\s 1" (without the quotation marks). In the Replace with box, type "\r 1" (without the quotation marks). Click Find Next until you locate a SEQ field that immediately follows a paragraph formatted with a heading style. Click Replace to replace the field switch. Repeat this step for all SEQ fields that immediately follow a paragraph formatted with a heading style. Click OK. Do not close the Replace dialog box.</li> In the Find what box, type "Arabic \s 1" (without the quotation marks). In the Replace with box, type "Arabic" (without the quotation marks). Click Replace All. This replaces the switches in all SEQ fields that do not immediately follow a paragraph formatted with a heading style.</li> Click OK. Do not close the Replace dialog box.</li> In the Find what box, type "STYLEREF 1 \s" (without the quotation marks). In the Replace with box, type "STYLEREF 1 \n" (without the quotation marks). Click Replace All.</li> Click OK.</li> Click Close.</li> Turn off fields codes by pressing ALT+F9.</li> On the File menu, click Print Preview. All the caption fields will be updated.</li> Click the Close button on the Print Preview toolbar.</li></ol>

The caption fields used for the caption should look similar to the following after you complete the previous steps. The caption that follows a paragraph formatted with a heading style should look like this:

Figure {STYLEREF 1 \n}-{SEQ Figure \* Arabic \r 1}

The subsequent captions should look like this:

Figure {STYLEREF 1 \n}-{SEQ Figure \* Arabic}

<div class="status_section">

STATUS
Microsoft has confirmed this to be a problem with certain versions of the Word 97 Import converter.

This problem is corrected in the version of the converter available with Microsoft Office 97 SR-2.

Additional query words: 8.0 word8 word97 sequence

Keywords: kbbug kbinterop kbconversion kbfield KB160931

-

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

© Microsoft Corporation. All rights reserved.