Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4849 มุมมอง

Hello!


I try to build my own report ... but when I print, I get an empty PDF.

When I print as HTML, he show the lines.


Other reports are printing normal.


Any idea where I can look?


Thank you  

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I have an idea. Make sure that in your report template you at least have the following three div's:

<div class="header"></div>
<div class="page"><!-- content in here --></div>
<div class="footer"></div>

If your report template doesn't have these div's, it will display in HTML, but not in PDF, because wkhtmltopdf needs to know where to find the header and footer of a report.

I hope that this fixes your problem. Please comment if this isn't the solution.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 17
5139
1
ก.ค. 24
9142
0
ม.ค. 16
3466
PDF reports แก้ไขแล้ว
5
ก.ค. 25
2293
Wrong PDF Format แก้ไขแล้ว
2
มี.ค. 24
2815