Click here to Skip to main content
15,901,853 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am work on generating report through java application.I successful to generate report through java application but now I want to do run time changes in xml file. means firstly I write sql query in xml file like follow
XML
<queryString language="SQL">
             <!--  <![CDATA[SELECT * FROM EMPLOYEES ]]>-->
    </queryString>


and design it as follows
<columnheader><statictext>
<text><<![CDATA[$F{EMPLOYEE_ID}

This is for column on report
<detail>
XML
<band height="20">
    <line>
        <reportElement positionType="FixRelativeToBottom" x="0" y="19" width="555" height="1"/>
    </line>
    <textField isStretchWithOverflow="true">
        <reportElement x="0" y="0" width="92" height="20"/>
        <textElement>
            <font size="10"/>
        </textElement>
        <textFieldExpression><![CDATA[$F{EMPLOYEE_ID}]]></textFieldExpression>
    </textField

>
this is for details of selected column.
Here I want to changes the column name at run time.for this run time changes in xml file what do I am?
please help me.
Posted
Updated 12-Mar-12 1:37am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900