One of the requirements I had when tasked in developing a dynamic webdynpro graph display page was to have a print preview function that’s triggered upon the click of a button. As my webdynpro is not in a browser setting but shelled in a SAP GUI, the user can’t use the print preview function available in the IE browser. At the time of this writing, SAP provides a print functionality for printing as detailed here . However this does not meet my requirement as firstly it’s a direct print function, not a print preview function. And secondly, the client is running on SAP Netweaver 7.0 EHP1, as oppose to EHP2 and above which supports this functionality. As ABAP webdynpro does not support javascripting, I did a workaround by calling a BSP page (with the webdynpro display encapsulated in an iframe) and triggering a countdown timer (this creates a time buffer to allow the page to render the graphics) before the print preview popup is displayed. Steps detailing this workaround are as below:
Edit : If you want a direct print function instead of a print preview one, change the var OLECMDID to 6 instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
37 | |
10 | |
7 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |