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

muneer

Members
  • Posts

    9
  • Joined

  • Last visited

muneer's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. muneer

    New bie

    i attached file. check it and tell me where i wrong
  2. muneer

    New bie

    same error occur in both cases Code: ÂCompiling to file... .BranchWiseAverage.jasper -> C:Program FilesJasperSoftiReport-3.0.0classic_landscape.javaErrors compiling .BranchWiseAverage.jasper. net.sf.jasperreports.engine.JRException:ÂErrorsÂwereÂencounteredÂwhenÂcompilingÂreportÂexpressionsÂclassÂfile: 1.ÂCannotÂcastÂfromÂBooleanÂtoÂBigDecimal ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂvalueÂ=Â(java.math.BigDecimal)(newÂBoolean(((java.math.BigDecimal)field_AvgAmount.getValue()).intValue()Â>=Â5000Â));//$JR_EXPR_ID=14$ ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ<---------------------------------------------------------------------------------------------------------> 2.ÂCannotÂcastÂfromÂBooleanÂtoÂBigDecimal ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂvalueÂ=Â(java.math.BigDecimal)(newÂBoolean(((java.math.BigDecimal)field_AvgAmount.getOldValue()).intValue()Â>=Â5000Â));//$JR_EXPR_ID=14$ ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ<------------------------------------------------------------------------------------------------------------> 3.ÂCannotÂcastÂfromÂBooleanÂtoÂBigDecimal ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂvalueÂ=Â(java.math.BigDecimal)(newÂBoolean(((java.math.BigDecimal)field_AvgAmount.getValue()).intValue()Â>=Â5000Â));//$JR_EXPR_ID=14$ ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ<---------------------------------------------------------------------------------------------------------> 3Âerrors ÂÂÂÂatÂnet.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193) ÂÂÂÂatÂit.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:591) ÂÂÂÂatÂjava.lang.Thread.run(UnknownÂSource) Compilation running time: 359. Post Edited by Muneer Ahmed at 03/25/09 07:41
  3. muneer

    New bie

    i am new in reporting i am using iReport 3.0... i want to show my line in report if a field value is greater than 5000 my field type is BigDecimal i wrote formula as (($F{AvgAmount}.intValue() >= 5000 )? true : false ) when i check expression result is *Expression successfully validated.* when i Run report error accour following the code ... how can i remove this error . thanks Code:Errors compiling .BranchWiseAverage.jasper. net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:1. Cannot cast from boolean to BigDecimal value = (java.math.BigDecimal)(((((java.math.BigDecimal)field_AvgAmount.getValue()).intValue() >= 5000 )? true : false ));//$JR_EXPR_ID=14$ <--------------------------------------------------------------------------------------------------------------->2. Cannot cast from boolean to BigDecimal value = (java.math.BigDecimal)(((((java.math.BigDecimal)field_AvgAmount.getOldValue()).intValue() >= 5000 )? true : false ));//$JR_EXPR_ID=14$ <------------------------------------------------------------------------------------------------------------------>3. Cannot cast from boolean to BigDecimal value = (java.math.BigDecimal)(((((java.math.BigDecimal)field_AvgAmount.getValue()).intValue() >= 5000 )? true : false ));//$JR_EXPR_ID=14$ <--------------------------------------------------------------------------------------------------------------->3 errors at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:591) at java.lang.Thread.run(Unknown Source)Compilation running time: 328
  4. i made a report in iReport i want to write a condition on a field like when a_field amount > 5000 then print line in report else nothing
  5. can you give "/busquedaAnunciosImpresionBoletin.jasper"" source OR any other; which help me to understand.
  6. would you explain it? i am new in IReport i make a report and call in java, my code is under Code: Post Edited by Muneer Ahmed at 03/06/09 10:29 Post Edited by Muneer Ahmed at 03/06/09 10:30
  7. Can i call Storeprocedure in iReport 3.0.0 ?? also can i pass ResultSet to iReport....?
  8. i am using iReport 3.0.0; i generate report successfully. but when i close report my program also close. how i remove it? Code:Map parameters = new HashMap(); parameters.put("branchID", brnID); //JasperDesign jasperDesign = JRXmlLoader.load("E:/My Java Projects/New J2Se/NBP Bank/NBP Server/src/Reports/classic3.jrxml"); JasperDesign jasperDesign = JRXmlLoader.load("Reports/BranchVise.jrxml"); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); ConnectDB con = new ConnectDB(); Connection jdbcConnection = con.conn; JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, jdbcConnection); JasperViewer.viewReport(jasperPrint);
×
×
  • Create New...