You cannot print a page and you receive an error message in an application that hosts a WebOC that uses a custom print template in Internet Explorer 8

Article translations Article translations
Article ID: 973538 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • On a computer that has Windows Internet Explorer 8 installed, you run an application.
  • The application hosts a Web Object Control (WebOC) that uses custom print templates in Windows Internet Explorer.
  • You previously used the OLECMDEXECOPT_DONTPROMPTUSER option in the source code to disable the Print dialog box.
  • You use the application to print a page by using a custom print template.
In this scenario, the page is not printed. Also, you receive a script error message in the printer.printpage line of the source code.

CAUSE

This issue occurs in a WebOC application in Internet Explorer 8 because the print dialog box element cannot locate the page that should be printed.

RESOLUTION

Security update information

To resolve this problem, install the most current cumulative security update for Internet Explorer. To install the most current updates, visit the following Microsoft Web site:
http://windowsupdate.microsoft.com
For more technical information about the most current cumulative security update for Internet Explorer, visit the following Microsoft Web site:
http://www.microsoft.com/technet/security/current.aspx

Note This update was first included in security update 978207 (MS10-002). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
978207 MS10-002: Cumulative security update for Internet Explorer

MORE INFORMATION

Steps to reproduce the problem

  1. Download the Printtemplates.exe sample application, and then run the application. To download this application, visit the following Microsoft Web site:
    http://msdn.microsoft.com/en-us/library/bb250460(VS.85).aspx
  2. On the drop-down menu next to Template Source, select template 2.
  3. Click Print w/o Prompt.
Template 2 is not printed, and you receive the following script error message:
Line: 95

Char: 2

Error: Unspecified error.

Code: 0

URl: res://printtemplates.exe/sampledesc.htm

Properties

Article ID: 973538 - Last Review: October 22, 2009 - Revision: 2.1
APPLIES TO
  • Windows Internet Explorer 8
Keywords: 
kbautohotfix kbexpertiseinter kbqfe kbhotfixserver kbsurveynew kbprb KB973538

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com