Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4449 Näkymät

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  

Avatar
Hylkää
Paras vastaus

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.

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
lokak. 17
4677
1
heinäk. 24
8566
0
tammik. 16
2985
4
kesäk. 24
1404
2
maalisk. 24
1814