I want to print a <p:dataTable>
, so I use <p:printer>
, but I want to skip printing the skin and make it look like a <h:dataTable>
. How can I do this?
Also, is it possible to change the paper orientation of the print? I would like to print it as landscape instead of portrait.
<h:outputLink id="lnk" value="#">
<p:printer target="tbl" />
<p:graphicImage value="http://www.primefaces.org/showcase/images/print.png" />
</h:outputLink>
I didn't find any suitable attribute in the <p:printer>
tag.
Update: sorry, nevermind the <p:printer>
can be used on a <h:dataTable>
as well, so you can also just answer the second question only.