COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: paloalto_cognos on 20 Jul 2010 03:27:22 PM

Title: how to create a prompt button to print
Post by: paloalto_cognos on 20 Jul 2010 03:27:22 PM
Hi,

I'm new to ocognos can anyone explain how to create a prompt button which prints the report or create a print preview of the report as in word.

Thanks
Prathyu
Title: Re: how to create a prompt button to print
Post by: imts on 21 Jul 2010 06:19:10 AM
u can use this code in the HTML item to print current window's content.

<html>
<form>
<button name="Print" value="Print" type="button" onClick = "javascript:window.print();">Click Me</button>
</form>
</html>
Title: Re: how to create a prompt button to print
Post by: paloalto_cognos on 21 Jul 2010 03:41:36 PM
thank you...