svn commit: r652831 - /ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r652831 - /ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl

jacopoc
Author: jacopoc
Date: Fri May  2 10:18:19 2008
New Revision: 652831

URL: http://svn.apache.org/viewvc?rev=652831&view=rev
Log:
Added ability to render the report in landscape format.

Modified:
    ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl

Modified: ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl?rev=652831&r1=652830&r2=652831&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/reportTemplate.fo.ftl Fri May  2 10:18:19 2008
@@ -33,9 +33,20 @@
             <#-- the footer -->
             <fo:region-after extent="0.4in"/>
         </fo:simple-page-master>
+        <fo:simple-page-master master-name="main-page-landscape"
+              page-width="11in" page-height="8.5in"
+              margin-top="0.4in" margin-bottom="0.4in"
+              margin-left="0.6in" margin-right="0.4in">
+            <#-- main body -->
+            <fo:region-body margin-top="1.2in" margin-bottom="0.4in"/>
+            <#-- the header -->
+            <fo:region-before extent="1.2in"/>
+            <#-- the footer -->
+            <fo:region-after extent="0.4in"/>
+        </fo:simple-page-master>
     </fo:layout-master-set>
   
-    <fo:page-sequence master-reference="main-page">
+    <fo:page-sequence master-reference="${pageLayoutName?default("main-page")}">
 
         <#-- Header -->
         <#-- The elements it it are positioned using a table composed by one row