By default, OBIEE does not allow you to print PDF without the prompts. The best workaround is to create a custom button using javascript which points to a hidden dashboard page made for printing. Then we can disable the print button in the dashboard and just use the custom javascript button for printing.
Steps Below
To do this, first duplicate the dashboard page you want to print.
Then remove the prompt and hide it.
So for example, you want to print a dashboard page called “Total Markets”. Duplicate this page and rename to “Total Markets Print”. We can now remove the prompt from the page and hide the dashboard.
In the “Total Markets” page, make sure you set the prompt so that the scope is Dashboard instead of Page.
Add a text to the dashboard with HTML markup checked.
<script type="text/javascript"> function DashboardPrint(){ PortalPrint('/shared/_portal/PrintDemo', 'Total Markets Print', true, 'pdf'); } </script> <button class="PDFButton" onclick="DashboardPrint()">PDF</button> <style> .PDFButton{ top:90px; background-color:#79bbff; -moz-border-radius:28px; -webkit-border-radius:28px; border-radius:28px; border:1px solid #84bbf3; cursor:pointer; color:#ffffff; font-family:Arial; font-size:14px; padding:6px 20px; text-decoration:none; text-shadow:0px 1px 0px #528ecc; } .PDFButton:hover { background-color:#378de5; } .PDFButton:active { position:left; top:8px; } </style>
Finally, disable the default PDF print button dashboard in dashboard properties.
Results should look similar to this:
Now you are ready for printing.
When you click the PDF button, it would not contain any prompts like below.
I was trying to find something like that for days. Thank you for sharing the html script.
LikeLike