How to customize reports width and height

From MTHWiki

Revision as of 13:29, 24 November 2010 by Wikiadmin (Talk | contribs)
Jump to: navigation, search

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

Be sure to make a backup before editing any file.

Please open networth_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"


Please restart My Money, your report will be recompiled the first time you use it

Personal tools