KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.

Show page count in a Table when printing #1190

Closed Peter Harari opened this topic on on Nov 28 - 3 comments

Peter Harari commented on Nov 28

Hi there.

I have a report page in which I display a Table and then call window.print() for native browser printing of the HTML content. I do the same for PDF, but in that case the export package has a great feature for displaying page count/total(as described here).

The question is: Is Table able to do that in pure HTML? Like a feature of the Widget or something?

I know that you can't do that in pure HTML, CSS or JavaScript at all, so you depends on the native page display that browser generates on the footer alongside with the page url.

Thank you in advance.

KoolReport commented on Nov 28

Well, at anywhere you can print the count of your data with:

echo $this->dataStore("store-name")->count();
KoolReport commented on Nov 28

Oh, I just found that I misunderstand your question, you are asking about the paging for table when print. It is difficult actually since we can not know how the table is paginated by the browser engine.

Peter Harari commented on Dec 2


I see. That is ok then.

Thank you.

KoolReport Is Free and Open-Source!

KoolReport is a professional php reporting framework which saves you tons of time to construct dynamic data report & dashboard.

  • Connect to various datasources such as MySQL, SQL Server, MongoDB or even from CSV or Excel file.
  • Contain series of powerful built-in data processes for your data manipulation.
  • Generate stunning charts and graphs to help you communicate data insights to your audiences effectively.
  • Integrate seamlessly with any php frameworks such as Laravel, CodeIgniter, Symfony.
Download Now and register our tutorials to get started!

Download KoolReport
help needed