How to customize reports width and height

From MTHWiki

(Difference between revisions)
Jump to: navigation, search
Line 51: Line 51:
* Please pick a report you would like to change, for example '''all_transactions_p100.jrxml'''
* 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)
* From Finder menu please select Edit-Copy (or Command-C)
 +
* You need to find out where your application data is stored, the easiest way of doing it is to start MyMoney, use View-Show console menu and type the following command in the console - <pre>print(SwingMoneyView.singleInstance.environment.getUserApplicationHome());</pre>
 +
 +
* Please note the output, this is where your user data is written to, for example it could be <pre>/Users/xxx/Library/Containers/com.mth.money/Data/Library/.mymoney</pre>

Revision as of 02:45, 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)
  • You need to find out where your application data is stored, the easiest way of doing it is to start MyMoney, use View-Show console menu and type the following command in the console -
    print(SwingMoneyView.singleInstance.environment.getUserApplicationHome());
  • Please note the output, this is where your user data is written to, for example it could be
    /Users/xxx/Library/Containers/com.mth.money/Data/Library/.mymoney
Personal tools