Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Hi,
You can only access page number in page header/footer which are sticky through pages. Please explain other cases where you want the page number displayed.
Regarding the main topic, if you want a nicer page break with table across pages you could try Cloud Export package which by default uses headless chrome to render pdf.
Ok, Page break I did manually with the help of PHP, Now i have another issue, I want to pass data from the controller to view in laravel how i can do. Below is my code:
$report->run();
$report->export('MyReportView')
->pdf(array(
"width"=>"1100px",
"height"=>"800px",
)
)->toBrowser("report.pdf", true);
Hi, you can pass any value to from controller like this:
$report = new MyReport(array(
"year"=>2020,
"userId"=>123,
));
Now at the view MyReportView
, you can receive pameters like following:
<?php
$userId = $this->params["userId"];
$year = $this->params["year"];
?>
Hope that helps.
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo