简体   繁体   English

使用带有lanscap的jsf打印数据表

[英]Print data table with jsf with lanscap

I have datatable with 30 column , but when printing it was 50% only printed and 50% missing so i want to print it with landscape mode to take all A4 Space . 我有30列的数据表,但是在打印时仅打印了50%,而缺少50%,所以我想以横向模式打印以占用所有A4空间。

so i don't know which code CSS use and how to implement it in HTML page with prime faces or jsf java . 所以我不知道CSS使用哪种代码以及如何在带有素面或jsf java的HTML页面中实现它。

xhtml code: xhtml代码:

<h:commandButton value="طباعة التقرير" type="button"
        icon="ui-icon-print">
        <p:printer target="hesham" />
</h:commandButton>

You should try this: here 您应该尝试一下: 这里

It looks like the same problem you are having ! 看来您遇到了同样的问题!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM