atanupanda Posted March 17, 2007 Share Posted March 17, 2007 HiPlease tell me the solution.I have attached in the doc file.It's very urgent.Thanks in advanceAtanu Pandamy code isCode:<?xml version="1.0" encoding="UTF-8" ?><!-- Created with iReport - A designer for JasperReports --><!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"><jasperReport name="date" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="0" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <queryString><![CDATA[select * from test]]></queryString> <field name="test_id" class="java.lang.Long"/> <field name="curdate" class="java.sql.Timestamp"/> <field name="value" class="java.lang.Double"/> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="17" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="8" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="8" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="29" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="dd/MM/yyyy h.mm a" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="7" width="150" height="20" key="textField"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <textFieldExpression class="java.sql.Timestamp"><![CDATA[$F{curdate}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="dd/MM/yyyy h.mm a" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="180" y="7" width="180" height="20" key="textField-1"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <textFieldExpression class="java.sql.Timestamp"><![CDATA[$F{curdate}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="7" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="5" isSplitAllowed="true" > </band> </pageFooter> <lastPageFooter> <band height="4" isSplitAllowed="true" > </band> </lastPageFooter> <summary> <band height="199" isSplitAllowed="true" > <timeSeriesChart> <chart hyperlinkTarget="Self" > <reportElement x="0" y="0" width="510" height="150" key="element-1"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <chartLegend textColor="#000000" backgroundColor="#FFFFFF" > </chartLegend> </chart> <timeSeriesDataset timePeriod="Hour"> <dataset > </dataset> <timeSeries> <seriesExpression><![CDATA["val"]]></seriesExpression> <timePeriodExpression><![CDATA[$F{curdate}]]></timePeriodExpression> <valueExpression><![CDATA[$F{value}]]></valueExpression> <labelExpression><![CDATA["val"]]></labelExpression> <itemHyperlink > </itemHyperlink> </timeSeries> </timeSeriesDataset> <timeSeriesPlot > <plot /> <timeAxisFormat> <axisFormat > </axisFormat> </timeAxisFormat> <valueAxisFormat> <axisFormat > </axisFormat> </valueAxisFormat> </timeSeriesPlot> </timeSeriesChart> </band> </summary></jasperReport> [file name=problem-a6546143437a1de8940b599304a13733.doc size=28672]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/problem-a6546143437a1de8940b599304a13733.doc[/file] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now