Wednesday, 16 April 2014

Change the orientation in Birt reporting tools to Landscape and portrait

I am just joined the Birt reporting tool, one of the most popular reporting tools in java , and open source too,
using the help I could developed the report and deployed it on the web and Export it to PDF and EXCEL in easy way and few steps .


the problems come when I want to change the orientation from portrait to landscape

I had search alot , I think that my BIRT version wasn't new enough , it only support from the IDE to make the view Fixed layout or Auto Layout

then 

HOW TO SOLVE IT :




open the Birt in xml-source and search for the page-setup tag , and copy below properties and it will be handled.

<page-setup>
        <simple-master-page name="Simple MasterPage" id="2">
            <property name="type">a4</property>
            <property name="orientation">landscape</property>
            <property name="topMargin">0.25in</property>
            <property name="leftMargin">0.25in</property>
            <property name="bottomMargin">0.25in</property>
            <property name="rightMargin">0.25in</property>
            <page-footer>
                <text id="3">
                    <property name="contentType">html</property>
                    <text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
                </text>
            </page-footer>
        </simple-master-page>
    </page-setup>

No comments:

Post a Comment