Jump to content
We've recently updated our Privacy Statement, available here ×

manoj0523

Members
  • Posts

    2
  • Joined

  • Last visited

manoj0523's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

0

Reputation

  1. While I am trying to Generate a dynamic report using jtable as datasource using jasper report, This error is caught "Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: tried to access method java.lang.Object.clone()Ljava/lang/Object; from class ar.com.fdvs.dj.util.Utils" i have added all possible library files to my netbeans project , but this error is coming.. Can any one help me out of this, Thanks in Advance. Manoj Post Edited by manoj0523 at 08/07/2011 06:09
  2. i have developed an application in netbeans(java) and 've installed Jasper report and ireport in netbeans , Now iam passing resultset as report parameter and i have designed Jasper report , so the result is coming fine but, if i need actual output from a jtable, what i want to do? I used the following code to send TableModel as Datasource to jasper report, but the report is coming blank, but it has 12 pages... PLease go thru the following code and help me out of it.. JAVA CODE: JasperDesign jasperDesign = JRXmlLoader.load (path+"/src/gwdashboard/ Reports/"+rptname); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); JRTableModelDataSource tblm = new JRTableModelDataSource(tablemodel); print = JasperFillManager.fillReport(jasperReport, Param, tblm); XML CODE IN JASPER REPORT: <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="null" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/> <style name="SubTitle" forecolor="#736343" fontName="Arial" fontSize="18"/> <style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/> <style name="Detail" fontName="Arial" fontSize="12"/> <style name="Row" mode="Transparent"> <conditionalStyle> <conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression> <style backcolor="#E6DAC3"/> </conditionalStyle> </style> <parameter name="rptdir" class="java.lang.String"/> <parameter name="xcmpy" class="java.lang.String"/> <queryString> <![CDATA[$P{Param}]]> </queryString> <background> <band/> </background> <title> <band height="78"> <staticText> <reportElement style="SubTitle" x="276" y="24" width="196" height="22"/> <textElement> <font fontName="Times New Roman" pdfFontName="Times-Roman"/> </textElement> <text><![CDATA[Purchase Analysis Report]]></text> </staticText> <textField> <reportElement x="533" y="4" width="269" height="42"/> <textElement textAlignment="Right"> <font fontName="Arial Narrow" size="36"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{xcmpy}]]></textFieldExpression> </textField> <image> <reportElement x="2" y="4" width="164" height="62"/> <imageExpression class="java.lang.String"><![CDATA[$P{rptdir}]]></imageExpression> </image> </band> </title> <pageHeader> <band/> </pageHeader> <columnHeader> <band height="16"> <line> <reportElement positionType="FixRelativeToBottom" x="0" y="15" width="802" height="1"/> <graphicElement> <pen lineWidth="0.5" lineColor="#999999"/> </graphicElement> </line> </band> </columnHeader> <detail> <band height="22"> <frame> <reportElement style="Row" mode="Opaque" x="0" y="0" width="802" height="22"/> </frame> </band> </detail> <columnFooter> <band height="6"> <line> <reportElement positionType="FixRelativeToBottom" x="0" y="3" width="802" height="1"/> <graphicElement> <pen lineWidth="0.5" lineColor="#999999"/> </graphicElement> </line> </band> </columnFooter> <pageFooter> <band height="25"> <frame> <reportElement mode="Opaque" x="-21" y="1" width="843" height="24" forecolor="#D0B48E" backcolor="#F2EBDF"/> <textField evaluationTime="Report"> <reportElement style="Column header" x="783" y="1" width="40" height="20" forecolor="#736343"/> <textElement verticalAlignment="Middle"> <font size="10" isBold="false"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField> <reportElement style="Column header" x="703" y="1" width="80" height="20" forecolor="#736343"/> <textElement textAlignment="Right" verticalAlignment="Middle"> <font size="10" isBold="false"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> </textField> <textField pattern="EEEEE dd MMMMM yyyy"> <reportElement style="Column header" x="22" y="1" width="197" height="20" forecolor="#736343"/> <textElement verticalAlignment="Middle"> <font size="10" isBold="false"/> </textElement> <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> </textField> </frame> </band> </pageFooter> <summary> <band/> </summary> </jasperReport> _______________ PLease help me out sir.. i need the TableModel as DataSource and the report must contain the datas as in the table without designing the jasper report. (if iam designing i.e if i fill the fields in report , it is coming fine, but i need the output without designing..) Pleas Reply ASAP... Thanks in Advance Manoj
×
×
  • Create New...