Create New BW Web Printing Controls Your Users Will Love
- by David Fox, Platinum Solution Consultant, SAP America
- March 1, 2004
In the Microsoft Internet Explorer (IE) application, the Web browser controls such print settings as page setup, paper size, and page orientation. These settings are not accessible to scripting function, which is problematic for BW teams because they limit end users' printing options. The author shows how to provide more printing controls to BW 3.x users with the code provided.
Web applications in the SAP BW 3.x Web Application Server (Web AS) environment run much the same way they do everywhere — via a Web browser. The technology within the browser governs the way that Web pages are displayed on screen and the way that they print. As a result, most limitations that BW users encounter displaying and printing their Web-based queries and reports result from the browser.
The browser of choice at most companies is Microsoft Internet Explorer (IE). Because Microsoft considers printing a security risk, settings such as page setup, paper size, and page orientation are not accessible to scripting functions on a Web page within IE. This presents a problem for BW teams.
Most teams would like to programmatically change the print settings in IE to accommodate a Web page’s layout, orientation, margins, and so forth. Web pages often require unique settings to print correctly. It would be nice for settings to change from Web page to Web page to prevent page clipping or other problems. Unfortunately, the only way to control these IE settings programmatically is to write a custom ActiveX1 control to interface with the Web browser. It requires advanced programming knowledge beyond the scope of this article. You have other options, however.
Would you like to see this full item?