Since Design Studio 1.3, we have the ability to print a WYSIWYG copy of our application at runtime. To see this in action, check out the interactive tutorial @ SAP LearnBI (http://scn.sap.com/docs/DOC-55517).
E.g. Place this code snippet inside an objects “On Click” event.
Let’s give it a try! Here is our demo application BEFORE we click the [Print] button.
Here is our demo application in Print Preview mode AFTER we click the [Print] button.
Two noticeable issues:
1. Background colour is not visible in our Header and Footer.
2. The popup menu remains during the print.
Each browser may render the initial view slightly differently. Refer to the Design Studio Guide – Printing an Analysis Application (http://help.sap.com/businessobject/product_guides/AAD14/en/ds14_user_en.pdf) for a summary of print settings for each browser.
In our case we are using Google Chrome, checking “Background graphics” fixes our initial issue.
This initially caused some confusion as our “On Click” event had script to set the Panel components visibility to false before the APPLICATION.print() was invoked, but it looks as though our code is executed simultaneously.
To resolve this issue, simply update your CSS to leverage the @media rule which allows us to stipulate a different style for specific media (in this case, print). For more information about @media, check out W3 Schools (http://www.w3schools.com/css/css_mediatypes.asp).
The popup menu is no longer visible when printed :smile:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 |