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

Last reviewed: February 5, 1998
Article ID: Q160931
The information in this article applies to:
  • Microsoft Word 97 for Windows

SYMPTOMS

You receive the following error message when you attempt to print or preview a Word 97 document in Word 6.0 or 7.0:

   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. For example:

  • All Seq fields contain a \s 1 switch.

    -and-

  • The StyleRef field contains \s switch.

WORKAROUND

To work around this problem, do the following:

  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 will 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 in the products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


KBCategory: kbprb
KBSubcategory: kbfield
Additional query words: 8.0 word8 word97 sequence
Keywords : kbfield kbinterop kbprb
Version : 97
Platform : WINDOWS


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: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.