PUB2002: Outlook Script Error Message When You Send Publication as E-Mail (289020)



The information in this article applies to:

  • Microsoft Publisher 2002

This article was previously published under Q289020

SYMPTOMS

When you send as an e-mail message a Microsoft Publisher publication that is based on the Bring-In Advertisement Wizard, the following behavior occurs when the message is received:
  • When the recipient previews the e-mail message in Microsoft Outlook 2002, the following message is displayed in the preview header:

    This HTML message contains script, which Outlook cannot display. This may affect how the message appears.

  • When the e-mail message is opened in Microsoft Outlook 2000, the recipient receives the following error message:
    An error has occurred in the script on this page.

    Line 1197
    Char 1
    Error 'wrapdiv292' is undefined
    Code 0
    URL outbind://3-
    00000000B66D403D97244A47A3E4F3893561B635C400200
    0

    Do you want to continue running scripts on this page?

CAUSE

This behavior occurs because Outlook does not allow the Dynamic Hypertext Markup Language (DHTML) script in the publication to run. This script enables the text-wrap feature in the publication.

Because of security risks from e-mail-based viruses, Outlook blocks scripts from running that may compromise computer security.

WORKAROUND

To work around this issue, insert two rectangles that cover the entire publication. To do this, follow these steps:
  1. Start Microsoft Publisher 2002, and then open the Bring-In Advertisement-based publication that you want.
  2. On the Insert menu, point to Picture, point to AutoShapes, point to Basic Shapes, and then click the Rectangle shape.
  3. Click and drag to position the rectangle around the publication.
  4. Repeat steps 2 and 3 to insert a second rectangle into the publication.

    NOTE: The rectangles must be inserted into the publication after all other editing is complete. Additionally, you may set the line color of the inserted rectangle shapes to No Line if you want. To do this, follow these steps:
    1. Right-click the border of the shape that you want, and then click Format AutoShape on the shortcut menu that appears.
    2. In the Format AutoShape dialog box, click the Colors and Lines tab.
    3. Under Line, click No Line in the Color list, and then click OK.
Neither of the messages described in the "Symptoms" section of this article is now displayed when the publication is received as e-mail.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

If you insert two rectangles that cover the entire publication, Outlook treats the resulting DHTML script as too complex to process when the publication is received as e-mail. Therefore, the script is not blocked, the error message is not generated, and the publication is displayed correctly.

Modification Type:MajorLast Reviewed:11/5/2003
Keywords:kbbug kberrmsg kbnofix KB289020