PRB: Custom Layout and Drawings in Office XP Chart Do Not Print in Internet Explorer 5.0 (291128)
The information in this article applies to:
- Microsoft Office XP Web Components
This article was previously published under Q291128 SYMPTOMS When you print a Web page that contains an Office XP Chart
component in Microsoft Internet Explorer, the layout customization and/or
drawings for the ChartSpace are not reflected in the printed output.
CAUSE When you print a Web page from Internet Explorer 5,
Internet Explorer requests that controls on the page persist their information,
and a copy of the Web page is stored to the Temp folder. Then, Internet
Explorer shells a new process, which loads the persisted page for printing.
When the persisted page is loaded, the script is not run. Therefore, because
layout and render events are not run when the persisted page is printed, the
printed output does not reflect the customization that is handled in those
events. RESOLUTION To work around this problem, use one of the following
methods:
- Upgrade to Internet Explorer 5.5. This problem does not
occur in Internet Explorer 5.5 because the printing facilities
changed.
- Use server-side code with the Chart component to create
non-interactive charts (images) using the GetPicture method for the ChartSpace object.For additional information and for sample code that demonstrates
this workaround, click the article number below to view the article in the
Microsoft Knowledge Base:
286277 HOWTO: Use the Office XP Chart Component to Create Static Charts with ASP
- For printing purposes, use client-side code with the ExportPicture method of the ChartSpace object to create a chart image from an interactive chart. This
workaround is demonstrated in the "More Information" section of this
article.
REFERENCESFor additional information, click the article number below to
view the article in the Microsoft Knowledge Base: 286323 PRB: Data Bound Office XP Chart Prints Incorrectly From Internet Explorer 5.0
For more information about Microsoft Office and
Office Web components, see the following Microsoft Web sites:
Microsoft Office Web Components Microsoft Office Developer Center
Modification Type: | Minor | Last Reviewed: | 8/23/2005 |
---|
Keywords: | kbOfficeWebChart kbprb KB291128 |
---|
|