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

atmaling

Members
  • Posts

    33
  • Joined

  • Last visited

Community Answers

  1. atmaling's post in JasperMobile giving error 404 for Android was marked as the answer   
    JasperSoft has resolved this issue in the updated version of JasperMobile 1.7 app.
    It's working fine now for my android.
    Download it from Android Play Store.
     
     
  2. atmaling's post in Problem: - password protected PDF was marked as the answer   
    Solution found
    bcprov-jdk16-145.jar  file was missing, downloaded from 
    Include jar file in lib or classpath folder.
    Below is the list of all required jars
    jasperreports-3.7.0.1.jar
    commons-io-1.3.1.jar
    commons-logging-1.0.4.jar
    commons-collections-3.2.jar
    commons-digester-1.7.jar
    commons-beanutils-1.8.0.jar
    groovy-all-1.5.5.jar
    itext-2.1.0.jar
    bcprov-jdk16-145.jar
     
    Below find my code
    Code:Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:atm","uid","pwd"); JasperReport jr=JasperCompileManager.compileReport("E:\\Atmaling\\my_programs\\pwdReport.jrxml"); JasperPrint jp=JasperFillManager.fillReport(jr,new HashMap(),con); JRPdfExporter exporter = new JRPdfExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jp); exporter.setParameter(JRExporterParameter.OUTPUT_FILE,new File("E:\\Atmaling\\my_programs\\pwdReport.pdf")); exporter.setParameter(JRPdfExporterParameter.OWNER_PASSWORD, "hi"); exporter.setParameter(JRPdfExporterParameter.USER_PASSWORD, "hi"); exporter.setParameter(JRPdfExporterParameter.IS_ENCRYPTED, Boolean.TRUE); exporter.exportReport();
  3. atmaling's post in print dash when value is ZERO was marked as the answer   
    Thanks very much friend.
    BUt this is not working. Its giving error message as "IncompatibleÂconditionalÂoperandÂtypesÂStringÂandÂBigDecimal"
     
    But I did by other method and its working fine.
    I changed the field type "marks" to String and then I wrote following expression in Text field expression
    "$F{marks}.equals("0") ? "--" : $F{marks}"
     
    make sure that "marks" field should be String
×
×
  • Create New...