How to customize reports width and height

From MTHWiki

(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Ogixidoni (Talk); changed back to last version by 4U2Guess)
Line 40: Line 40:
Please restart My Money, your report will be recompiled the first time you use it
Please restart My Money, your report will be recompiled the first time you use it
 +
 +
 +
=== Changing Reports Print Width and Length on a Mac ===
 +
 +
Changing report parameters on a Mac is similar to Windows procedure:
 +
 +
* Please locate MyMoney app, it is usually installed into /Applications folder
 +
* Please Control-Click (or right click) on MyMoney.app, select Show package contents
 +
* Navigate to Contents/Resources/System/Reports/built-in
 +
* Please pick a report you would like to change, for example '''all_transactions_p100.jrxml'''
 +
* From Finder menu please select Edit-Copy (or Command-C)

Revision as of 02:39, 10 January 2014

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


Changing Reports Print Width and Length on a Mac

Changing report parameters on a Mac is similar to Windows procedure:

  • Please locate MyMoney app, it is usually installed into /Applications folder
  • Please Control-Click (or right click) on MyMoney.app, select Show package contents
  • Navigate to Contents/Resources/System/Reports/built-in
  • Please pick a report you would like to change, for example all_transactions_p100.jrxml
  • From Finder menu please select Edit-Copy (or Command-C)
Personal tools