Article ID: 262827 - Last Review: August 23, 2005 - Revision: 5.4 FILE: OWCHelpr.exe Demonstrates Automation to Excel for Printing a PivotTable Component on a Web PageThis article was previously published under Q262827 SUMMARY OWCHelpr.exe is a sample that illustrates how you can use
Automation to Microsoft Excel to print a PivotTable component on a Web page.
OWCHelpr.exe contains an ActiveX DLL that copies a PivotTable to the clipboard,
pastes it to a new Microsoft Excel workbook, and formats the workbook for
printing. OWCHelpr.exe is a sample that demonstrates how you can overcome some of the printing limitations you might encounter while printing a PivotTable component from Internet Explorer. A common problem is printing a PivotTable that is wider than the width of a page; in this situation, the portion of the PivotTable that exceeds the page width is often omitted in the printed output. You can avoid this by using Automation to Excel to print the contents of the PivotTable. NOTE: For your clients to use this helper DLL for PivotTable printing, they must have Microsoft Excel installed. MORE INFORMATIONThe
following file is available for download from the Microsoft Download
Center: OWCHelpr.exe
(http://download.microsoft.com/download/excel2000/sample1/2000/w9x2k/en-us/owchelpr.exe)
For
additional information about how to download Microsoft Support files, click the
following article number to view the article in the Microsoft Knowledge Base: 119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
Files Included with OWCHelpr.exeOWCHelpr.exe contains the following files:
How to Use the Sample FilesThe sample Web page (PrintPivotInXL.htm) that is included with this download illustrates how you can use the OWCHelper ActiveX DLL from a Web page containing a PivotTable component. The steps below walk you through a demonstration by using the sample Web page:
Additional NotesIf you prefer, you can incorporate script directly on your Web page that enables you to accomplish printing with Excel in much the same way as does the OWCHelper ActiveX DLL. However, because Microsoft Excel is an Automation server that is not marked safe, clients might receive a security warning when viewing your Web page. By using an ActiveX DLL to perform the Automation to Excel, you can avoid this warning.The .cab file included with this download was packaged using the Package and Deployment Wizard that ships with Microsoft Visual Studio 6.0. It is marked Safe for Scripting and Safe for Initialization. (c) Microsoft Corporation 2000, All Rights Reserved. Contributions by Dave Stearns, Microsoft Corporation. REFERENCESProgramming Microsoft Office 2000 Web Components by Dave Stearns, ISBN 0-7356-0794-X For more information about the Microsoft Office Web Components, please visit the following Microsoft Web site: http://support.microsoft.com/ofd
(http://support.microsoft.com/ofd)
For additional information
about sample code that demonstrates solutions using the Office 2000 Web
Components with VBScript and ASP, click the article number below to view the
article in the Microsoft Knowledge Base: 258187
(http://support.microsoft.com/kb/258187/EN-US/
)
OWebComp.exe Contains Scripting Samples for the Office Web Components
| Article Translations
|
Back to the top
