-
1. Re: Print content of panelGroup
nbelaevski Feb 5, 2010 3:52 PM (in response to jsfgeeks)Hi,
Yes, it's possible.
1) Add CSS classes for "print" media that will hide unnecessary content
2) Invoke window.print() by button click
-
2. Re: Print content of panelGroup
jsfgeeks Feb 8, 2010 5:43 AM (in response to nbelaevski)Hi Nick,
Thanks for your support. I done it by your alternative. I took following 2 CSS,
<style type="text/css" media="aural"><!--
body { color: white; font-size: 13px; font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular; background-color: black }
a { color: #ffa500 }
table#main { width: 750px }
.noScreen {display:none}-->
</style>
<style type="text/css" media="print"><!--
table#main { width: 550px }
body { color: black; font-family: Arial, Georgia, Times; background-color: white; font-size:13px; }
.noPrint{display:none}
.noScreen {display:normal }
a {display:none}
--></style>And in my button, I took styleClass="noPrint". It works perfect as I need.
Thanks again,
JSF GEEKS