Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4847 Lượt xem

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  

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 17
5139
1
thg 7 24
9142
0
thg 1 16
3466
PDF reports Đã xử lý
5
thg 7 25
2291
Wrong PDF Format Đã xử lý
2
thg 3 24
2815