KoolReport's Forum

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

Ignore pagination on print #2254

Closed Ron opened this topic on on Aug 11, 2021 - 1 comments

Ron commented on Aug 11, 2021

I have a report that is displayed on the web with pagination 100 rows per page. I also have a print button. when I click the print button it prints only the shown 100 rows and not the entire report results. how can I make it ignore the pagination and print the entire report

KoolReport commented on Aug 13, 2021

We are sorry for the late reply. Please create a parameter for your report name "pagination" receiving boolean value.

So when you render report normally on web you do:

$myReport = new MyReport([
    "pagination" => true
])

and when you export you do:

$myReport = new MyReport([
    "pagination" => false
])

At the view, you will receive this parameter through $this->params["pagination"], base on its value, you decide whether to set pageSize for table

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
help needed

None