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

ID: Q160931


The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0


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:

Q162214 WD: How to Obtain the Word 97-2000 Import Converter
To temporarily work around this problem, follow these steps:
  1. Open the Word 97 document in Word 6.0 or Word 7.0.


  2. 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.


  3. 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}


  4. On the Edit menu, click Replace.


  5. 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.


  6. Click OK. Do not close the Replace dialog box.


  7. 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.


  8. Click OK. Do not close the Replace dialog box.


  9. 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.


  10. Click OK.


  11. Click Close.


  12. Turn off fields codes by pressing ALT+F9.


  13. On the File menu, click Print Preview. All the caption fields will be updated.


  14. Click the Close button on the Print Preview toolbar.


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}


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 : kbinterop kbdta kbconversion kbfield
Version : WINDOWS:6.0,6.0a,6.0c,7.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: July 9, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.