PDF button in report

I came across a solution to get a PDF button in the report.
Drag a HTML item into the report and put in the following script:
<script language=”javascript”>
function gotoPDF()
{var obj=document.all[‘OutputFormat’];
var value=”PDF”;
/* Below function passed the selected output format to the server */
window.onload(gCognosViewer.getRV().viewReport (value));
<button style=”background-color:white” onclick=”gotoPDF()”>Open in PDF</button>
Another option is to create a drill link to the report it self.

Leave a Reply

Your email address will not be published. Required fields are marked *