Cash In Report
This example show how to export report to PDF
Download PDF
Month | Amount |
May, 2005 |
$4,824 |
June, 2005 |
$9,632 |
July, 2005 |
$28,374 |
August, 2005 |
$24,072 |
February, 2006 |
$514 |
Exporting is one of the most used feature in reporting. The `Export` package of KoolReport helps to export any report with charts and tables into PDF and other image formats such as PNG, JPG, BMP and more.
In above example, when user click to Export button, browser will call the export.php. The report will run and produce the PDF report.
As you may notice the export using another view called `SakilaRentalPdf.view.php` to generate PDF. We seperate the pdf-generated view with the for-browser view to be easier to manage. The view for PDF can have extra settings to control pdf margin or pdf header and footer.
More information of the Export package you can find it [here](https://www.koolreport.com/packages/export).