Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Hi,
To create header for every page, please use this setting:
$report->export("SalesQuartersPdf")
->pdf(array(
"format"=>"A4",
"header"=>array(
"height"=>"1cm",
"contents"=>"This is a header{pageNum}/{numPages}"
),
))
->toBrowser("SalesQuarters.pdf")
;
Thanks!
Hi Thanks for the reply.
Sending in settings was restriction on my end as I have multiple reports being processed by one class.
So I solved in template by doing this:
<header style='height:30px'>
<div class="page-header"> <?php Table::create(['dataSource' => resultset1, 'columns' => [
'Header1' => ['label' => '']]]);
I adapted this from previous answer one of your colleagues gave me on same issue I had with page numbers not displaying where I had to use:
<div class="page-footer" style="text-align:center; font-size:0.8em;">{pageNum}/{numPages}</div>
Thanks for your help!
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo