Jump to content

adasi

Members
  • Posts

    13
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by adasi


  1. I created a jasper report including CrossTab...That report is working in iReport Tool...but when i compile that report in java application.There are some errors occors...

    Aug 11, 2013 10:32:29 AM org.apache.commons.digester.Digester error
    SEVERE: Parse Error at line 43 column 30: cvc-complex-type.3.2.2: Attribute 'splitType' is not allowed to appear in element 'band'.
    org.xml.sax.SAXParseException; lineNumber: 43; columnNumber: 30; cvc-complex-type.3.2.2: Attribute 'splitType' is not allowed to appear in element 'band'.

    please help me......

     

     

  2. Hey...

    I m developing java application in netbeans in ubuntu..so i m using jDialog form..there are few reports to be generated..When I open a jasper report on jDialog Form,the report will open before the jDialog form..Then we can see the report..

    How can we open jasper report in a form(In VB Report form)..Otherwise can we get report always on the top(like jDialog Form).

    please help me!!!!!!!!!

     

     

  3. Hey.....

    I have main report and 3 sub reports..when i compile the main report  there is an error..

    net.sf.jasperreports.engine.JRException: Could not load object from location : .\Job_Card_subreport0.jasper

     

    Can you put the code......

    i used code.....

    in Print Button...................

                    Map params = new HashMap();
                    params.put("JobCard",JobCardNo);
                    new cls_Report().generateReport("Job_Card.jrxml", params);

    in report class..........................

        String reportDir = "D:\\jobCardSys\\src\\Reports\\";     //C:\Users\Isuru\Desktop\report

        public  void generateReport(String reportname, Map params) throws JRException{

                JasperReport jr = JasperCompileManager.compileReport(reportDir + reportname);
                JasperPrint jp = JasperFillManager.fillReport(jr, params, new cls_Connect().connect());
                JasperViewer.viewReport(jp, false);
        
       }

    sub reports in the same folder.....but can complier

    help me!!!!!!!!!!!!

     

  4. Hey..............

    We can make memory table in MySQL  lake below..

     

    mysql> CREATE TABLE test ENGINE=MEMORY    ->     SELECT ip,SUM(downloads) AS down    ->     FROM log_table GROUP BY ip;mysql> SELECT COUNT(ip),AVG(down) FROM test;mysql> DROP TABLE test;[/code]
    [/code]
    But when we get memory table detail to the jasper report.That mean when we build jasper reportwe want to write report query..so we want to make above query in jasper report..How can we do that?[/code]
     
     


    Post Edited by adasi at 08/10/2011 16:39
  5. Hey....

    In the java program.....

    After putting the relevent parameteres  and then press the print button...the report will print..

    That mean  the report will not view and  will not open print dialog...

    is the there a cording ???

     

    can you help me please!!

    i put some code below...can u tell me that code is correct or not  or we can do our work from that code....

    can u put the corrected code please!!!!!!!!

     

     

    Code:
    /* * To change this template, choose Tools | Templates * and open the template in the editor. */package Classes;import java.util.Map;import javax.print.PrintService;import javax.print.PrintServiceLookup;import javax.print.attribute.HashPrintRequestAttributeSet;import javax.print.attribute.PrintRequestAttributeSet;import net.sf.jasperreports.engine.JRException;import net.sf.jasperreports.engine.JRExporter;import net.sf.jasperreports.engine.JRExporterParameter;import net.sf.jasperreports.engine.JasperCompileManager;import net.sf.jasperreports.engine.JasperFillManager;import net.sf.jasperreports.engine.JasperPrint;import net.sf.jasperreports.engine.JasperReport;import net.sf.jasperreports.engine.export.JRPrintServiceExporter;import net.sf.jasperreports.engine.export.JRPrintServiceExporterParameter;/** * * @author Admin */public class cls_Report_passBook {    String reportDir = "D:\\easyBanker\\src\\Report\\";    String reportDir2 = "H:/PrintCheck";    public  void generateReport(String reportname, Map params) throws JRException{                        String printer="CutePDF Writer";                        PrintService service = null;                        PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();                     //   aset.add(MediaSizeName.ISO_A4);                        PrintService[] services3 = PrintServiceLookup.lookupPrintServices(null, null);                        for(int k=0;k<services3.length;k++){                        if(services3[k].getName().trim().equals(printer.trim())){                        service = services3[k];                        }                        }                        //System.out.println("AAAAAAAAA"+service);                        if(service == null){                         System.out.println("PRINTER NOT FOUND->"+printer);                        }else {            System.out.println("AAAAAAAAA");            JasperReport jr = JasperCompileManager.compileReport(reportDir + reportname);            JasperPrint jp = JasperFillManager.fillReport(jr, params, new cls_Connect().connect());            JRExporter exporter = new JRPrintServiceExporter();            exporter.setParameter(JRExporterParameter.JASPER_PRINT, jp);            exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, service.getAttributes());            exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, service.getAttributes());            exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);            exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.TRUE);            exporter.exportReport();                        }         }}
  6. Hey  ....

    I want to do .....In jasper report....there are 22 lines in each page...

    in  1st page  line no(1  to 22)

    in  2nd page  line no(1  to 22)

    in  3rd page  line no(1  to 22)

     

    in  last   page  also  line no(1  to 22)

     

    how can we do that.........

    please see the atachment....

     

     

×
×
  • Create New...