Anonymous
08-14-2002, 05:55 AM
Hello,
I got problem in JfreeReport0.7.5b verstion agian.
Actually when i m not using Items tag that time i not getting date.
what is the problem i cant understand..
my XML File is
<?xml version="1.0" encoding="iso-8859-1" ?>
- <report name="Sample Report 1" width="468" height="648">
- <reportheader height="48" fontname="Serif" fontstyle="bold" fontsize="20">
<label name="Label1" x="0" y="0" width="100%" height="24" alignment="center" baseline="20">Residents Report</label>
</reportheader>
- <reportfooter height="70" fontname="Serif" fontstyle="bold" fontsize="16">
<label name="Label 5" x="0" y="11" width="100%" height="24" alignment="center">*** END OF REPORT ***</label>
</reportfooter>
- <pageheader height="18" fontname="Serif" fontstyle="plain" fontsize="10" onfirstpage="true">
<rectangle x="0" y="0" width="100%" height="100%" color="#AFAFAF" weight="0" />
<date-function name="date1" x="0" y="0" width="100%" height="14" alignment="right" baseline="12" format="EEE, MMM d,yyyy" function="report_date" />
<line name="line1" x1="0" y1="16" x2="0" y2="16" color="#CFCFCF" weight="2.0" />
</pageheader>
- <pagefooter height="18">
</pagefooter>
- <groups>
- <group name="ResidentReport">
- <groupheader height="121" fontname="Monospaced" fontstyle="bold" fontsize="9" pagebreak="false">
<label name="Label 1" x="0" y="1" width="76" height="9" alignment="left">Patient Id</label>
<label name="Label 2" x="100" y="1" width="76" height="9" alignment="left" />
<label name="Label 3" x="250" y="1" width="76" height="9" alignment="left">Residents No.</label>
<label name="Label 4" x="350" y="1" width="76" height="9" alignment="left" />
<label name="Label 5" x="0" y="21" width="76" height="9" alignment="left">Conclution</label>
<label name="Label 6" x="5" y="41" width="76" height="9" alignment="left" />
<label name="Label 7" x="250" y="101" width="76" height="9" alignment="left">Doctor Name</label>
<label name="Label 8" x="350" y="101" width="76" height="9" alignment="left" />
<label name="Label 9" x="0" y="101" width="76" height="9" alignment="left">Date</label>
<label name="Label 10" x="80" y="101" width="76" height="9" alignment="left" />
</groupheader>
- <groupfooter height="18" fontname="Monospaced" fontstyle="bold" fontsize="9">
</groupfooter>
- <fields>
<field>date1</field>
</fields>
</group>
</groups>
- <functions>
- <function name="report_date" class="com.jrefinery.report.function.ReportPropertyFunction">
- <properties>
<property name="reportProperty">report.date</property>
</properties>
</function>
</functions>
</report>
where i m wong plz tell me
Thanks in Advance
Sandy
I got problem in JfreeReport0.7.5b verstion agian.
Actually when i m not using Items tag that time i not getting date.
what is the problem i cant understand..
my XML File is
<?xml version="1.0" encoding="iso-8859-1" ?>
- <report name="Sample Report 1" width="468" height="648">
- <reportheader height="48" fontname="Serif" fontstyle="bold" fontsize="20">
<label name="Label1" x="0" y="0" width="100%" height="24" alignment="center" baseline="20">Residents Report</label>
</reportheader>
- <reportfooter height="70" fontname="Serif" fontstyle="bold" fontsize="16">
<label name="Label 5" x="0" y="11" width="100%" height="24" alignment="center">*** END OF REPORT ***</label>
</reportfooter>
- <pageheader height="18" fontname="Serif" fontstyle="plain" fontsize="10" onfirstpage="true">
<rectangle x="0" y="0" width="100%" height="100%" color="#AFAFAF" weight="0" />
<date-function name="date1" x="0" y="0" width="100%" height="14" alignment="right" baseline="12" format="EEE, MMM d,yyyy" function="report_date" />
<line name="line1" x1="0" y1="16" x2="0" y2="16" color="#CFCFCF" weight="2.0" />
</pageheader>
- <pagefooter height="18">
</pagefooter>
- <groups>
- <group name="ResidentReport">
- <groupheader height="121" fontname="Monospaced" fontstyle="bold" fontsize="9" pagebreak="false">
<label name="Label 1" x="0" y="1" width="76" height="9" alignment="left">Patient Id</label>
<label name="Label 2" x="100" y="1" width="76" height="9" alignment="left" />
<label name="Label 3" x="250" y="1" width="76" height="9" alignment="left">Residents No.</label>
<label name="Label 4" x="350" y="1" width="76" height="9" alignment="left" />
<label name="Label 5" x="0" y="21" width="76" height="9" alignment="left">Conclution</label>
<label name="Label 6" x="5" y="41" width="76" height="9" alignment="left" />
<label name="Label 7" x="250" y="101" width="76" height="9" alignment="left">Doctor Name</label>
<label name="Label 8" x="350" y="101" width="76" height="9" alignment="left" />
<label name="Label 9" x="0" y="101" width="76" height="9" alignment="left">Date</label>
<label name="Label 10" x="80" y="101" width="76" height="9" alignment="left" />
</groupheader>
- <groupfooter height="18" fontname="Monospaced" fontstyle="bold" fontsize="9">
</groupfooter>
- <fields>
<field>date1</field>
</fields>
</group>
</groups>
- <functions>
- <function name="report_date" class="com.jrefinery.report.function.ReportPropertyFunction">
- <properties>
<property name="reportProperty">report.date</property>
</properties>
</function>
</functions>
</report>
where i m wong plz tell me
Thanks in Advance
Sandy