Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to limit the number of rows to show in the table?
09-06-2016, 03:10 AM,
#1
How to limit the number of rows to show in the table?
The results overlaps the table. I want to limit the data it fetch from the db. how to do this?


Attached Files
.pdf   landslid_erpsite_AgedDebtors_2016-09-06 (44).pdf (Size: 11.96 KB / Downloads: 4)
Reply
09-06-2016, 05:44 AM,
#2
RE: How to limit the number of rows to show in the table?
Rather than limit the rows you take from the DB, you need to change the point at which it throws a new page.

Tim
Reply
09-06-2016, 10:22 PM,
#3
RE: How to limit the number of rows to show in the table?
(09-06-2016, 05:44 AM)falkoner Wrote: Rather than limit the rows you take from the DB, you need to change the point at which it throws a new page.

Tim


where and how can i change it?
Reply
09-06-2016, 11:11 PM,
#4
RE: How to limit the number of rows to show in the table?
Well in PrintCustStatements.php you have the lines:
if ($YPos-$line_height <= $Bottom_Margin){
/* head up a new statement page */
$PageNumber++;
$pdf->newPage();
include ('includes/PDFStatementPageHeader.inc');
} //end if need a new page headed up
at round about line 259. In your case the bottom margin is bigger I think, so you need to increase the size of the $Bottom_Margin variable, or just change the condition line to make the new page call come earlier.

Tim
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)