This topic is locked

How to define number of Rows Per page on Print Page

11/6/2013 8:39:38 AM
PHPRunner General questions
A
acpan author

Hi,
i have a data table (contracts table) and allowed user to click print and show the usual

phpr printer-friendly formatted page, and the user can print it or save it as PDF using the chrome browser.

I need some advices below:

  1. I need to make sure when my user click print, there are only max. x numbers of

    rows per page. Is there a way to do it programmatically or a file to edit the settings ?
  2. Normally, when user clicks print using chrome, and save as PDF, there is a default name for

    the filename that looks like the table name, eg. contracts.pdf, my question is, i want to

    append a variable to the filename, eg. contacts_id1234.pdf. Is it possible and how ?
    Anyone can shed some light to this? Many thanks!
    ACPan

C
cgphp 11/6/2013

1. I need to make sure when my user click print, there are only max. x numbers of

rows per page. Is there a way to do it programmatically or a file to edit the settings ?


On the Pages tab, near the Print option there is a button. Click on it and enter the number of rows per page.

2. Normally, when user clicks print using chrome, and save as PDF, there is a default name for

the filename that looks like the table name, eg. contracts.pdf, my question is, i want to

append a variable to the filename, eg. contacts_id1234.pdf. Is it possible and how ?


You have to edit the generated code. You can't do it from PHPrunner.

A
acpan author 11/6/2013

Hi Cristian,
Thanks for the info. for Question 2, which are the generated codes I should edit?
AC Pan