Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

Getting Started

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.

Issue #1 – Background Colour is Not Visible

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.

Issue #2 – Popup Menu is Visible while Printing

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:

3 Comments
Labels in this area