If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Printing certain components in a dashboard

Started by Cognosuser2019, 14 Aug 2015 10:37:36 AM

Previous topic - Next topic

Cognosuser2019

Hi All,

Is it possible to print only certain components in a dashboard...? Suppose i have 2 charts 2 list in a dashboard page created in Report Studio. I want to print only one of the chart or one list item. How do i achieve it? Appreciate your response.

cognostechie

Reshma -

It depends on what type of Dashboard tool you want to use. Cognos has different tools for making a Dashboard. If you use Cognos Workspace then it will let you select a specific list/graph from a report.

Cognosuser2019

#2
Thanks for your response. Ya in Cognos workspace you get the option on the component. What about Report Studio?

Lynn

You could add conditional rendering to the report along with text items holding drill through definitions that would run the report, while passing the appropriate parameter, to conditionally render only a particular item.

chinnucognos

Create the another report say Print_version report by copying  the Original report , remove chart and list which you don't want to print in that print_version report.
Now come to original report, make drill thru by using text item at certain positions, assign print_version report in that drill thru and give parameters which you have used in Original report.
(note: remove prompt  passing parameters in print version report).
Let me know if u understand my point or not?
Deal with it!

Cognosuser2019

Thanks Lynn and chinnucognos for your inputs.

My friend suggested another solution using HTML item which worked fine for me. This way i could avoid creating another drill through report.

Here is the code...

First html item to be placed before the object (list/chart)

<html>
<head>
<script language="javascript">
function printdiv(printpage)
{
var headstr = "<html><head><title></title></head><body>";
var footstr = "</body>";
var newstr = document.all.item(printpage).innerHTML;
var oldstr = document.body.innerHTML;
document.body.innerHTML = headstr+newstr+footstr;
window.print();
document.body.innerHTML = oldstr;
return false;
}
</script>
</head>
<body>
<input name="b_print" type="button" class="ipt"   onClick="printdiv('div_print');" value=" Print ">
<div id="div_print">

HTML2 Code will be as follows and it Needs to be placed after the list

</div>
</body>
</html>