How to customize reports width and height
From MTHWiki
Wikiadmin (Talk | contribs)
(New page: ===Changing Reports Print Width and Length === By default all reports have print sizes of A4 ISO 216 standard - 210 × 297 mm or 595 x 842 pixels Currently there is no easy way to cha...)
Next diff →
Revision as of 04:41, 1 November 2009
Changing Reports Print Width and Length
By default all reports have print sizes of A4 ISO 216 standard - 210 × 297 mm or 595 x 842 pixels
Currently there is no easy way to change the report size other than by manually editing report templates.
To do so please open open My Moneys reports directory under system/reports/built-in
For example on windows this would be in C:\Program Files\MTH\My Money\system\reports\built-in. Please locate report template you want to modify, report templates will have extension jrxml
For example, to modify Customizable Networth Chart you would need to edit \system\reports\built-in\charts\networth_p200.jrxml
We suggest to copy and rename this file before modifying it, for example into networth_Letter_p200.jrxml
Please open networth_Letter_p200.jrxml in any text editor, you will see the following report definition at the top
<jasperReport
name="networth_p200"
orientation="Landscape"
pageWidth="842"
pageHeight="595"
To change the Width and Height simply edit the corresponding values, for example US Letter format is 8½ by 11 inches or 612 x 792 pixels
As this particular report is in Landscape mode the width and height values need to be interchanged,
<jasperReport
name="networth_p200"
orientation="Landscape"
pageWidth="792"
pageHeight="612"