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

adasi

Members
  • Posts

    13
  • Joined

  • Last visited

adasi's Achievements

Apprentice

Apprentice (3/14)

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

Recent Badges

0

Reputation

  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 want to direct print to the printer not view the report..with out serial port programming, can we do this via jasper libraries..please help me?
  3. 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!!!!!!!!!
  4. Hey... I am developing a banking systems..so there are very complex repoet to be genaretad..i already know that how to making MySQL memory table..how can we connect that memory and jasper report? also can we make a report with out using iReport tool ?
  5. InputStream inputStream = new FileInputStream(reportsRootDir + DIRECTORY + xxxx.jrxml); must be........ FileInputStream inputStream = new FileInputStream(reportsRootDir + DIRECTORY + xxxx.jrxml); there are some errors..when i put the java cording.... help me................
  6. 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!!!!!!!!!!!!
  7. Hey... Is there a eny method to get MyQSL memory table value to the jasper report....
  8. 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
  9. 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(); } }}
  10. 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....
  11. Hey.... I put some report format in word document......it has been attached... please see this and help me.... Thanks
  12. I am building a Banking System..I want to print a PassBook....Then , When i put the last line number of the PassBook, I want to be printed the rest of the account transaction details that line number>line number.... So I want to add some Blank Lines Before filling the database details How can i do it? Plese help me.. Post Edited by adasi at 08/05/2011 08:38
×
×
  • Create New...