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 1: Line 1:
-
=[http://egyworene.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
===Changing Reports Print Width and Length ===
===Changing Reports Print Width and Length ===
Line 19: Line 18:
-
<code><pre>
+
<code><pre>
-
&lt;jasperReport
+
<jasperReport
-
name=&quot;networth_p200&quot;
+
name="networth_p200"
-
orientation=&quot;Landscape&quot;
+
orientation="Landscape"
-
pageWidth=&quot;842&quot;
+
pageWidth="842"
-
pageHeight=&quot;595&quot;
+
pageHeight="595"
-
&lt;/pre&gt;&lt;/code&gt;
+
</pre></code>
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
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
Line 31: Line 30:
As this particular report is in Landscape mode the width and height values need to be interchanged,
As this particular report is in Landscape mode the width and height values need to be interchanged,
-
&lt;code&gt;&lt;pre&gt;
+
<code><pre>
-
&lt;jasperReport
+
<jasperReport
-
name=&quot;networth_p200&quot;
+
name="networth_p200"
-
orientation=&quot;Landscape&quot;
+
orientation="Landscape"
-
pageWidth=&quot;792&quot;
+
pageWidth="792"
-
pageHeight=&quot;612&quot;
+
pageHeight="612"
-
&lt;/pre&gt;&lt;/code&gt;
+
</pre></code>
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

Revision as of 13:29, 24 November 2010

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