KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

PDF Report Title with Params #1240

Open najam opened this topic on on Dec 31, 2019 - 1 comments

najam commented on Dec 31, 2019

Hi Guys,

Would you please let me know how I can pass the params to PDF report title?

I want to set the title of generated PDF as:

Stock Report From: 1-11-2019 To 30-11-2019

This date range is same which i set to filter the report in report view. I just want to use it for PDF export so that end user knows the report duration and it should be dynamic as per the user selction range on report view page.

Thanks

David Winterburn commented on Dec 31, 2019

Hi Najam,

In your PDF view file you could access a report's parameters like in a normal report view file:

    //MyReportPDF.view.php
    ...
    echo "Stock Report From: " . $this->params["fromDate"] . " To " . $this->params["toDate"];

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

Export