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

lucianocasa

Members
  • Posts

    5
  • Joined

  • Last visited

lucianocasa'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. thanks for the help I will try Post Edited by lucianocasa at 08/23/2011 17:44
  2. What is the file jasperreports.properties? I was with the report generation very slow when I put this file along with the executable to generate the report started in seconds. I know it's a configuration file but that setting? Why is it necessary? It is not possible to embed it in java file. Post Edited by lucianocasa at 08/22/2011 15:56
  3. Sensational and unbelievable!! The report went on to run in 7 seconds. Tks a lot
  4. I did not try I'll try to see if it changes anything. I'll see how I do this in eclipse because I do not know. Tks
  5. Hi I'm having trouble with the speed of the report. My datasource is an XML using XPATH. IReport, the report is shown in less than 7 seconds and the java program it takes 8 minutes. This delay occurs in Fill. can anyone help? How do I get JRXmlDataSource.class? This would make any difference? Tks Luciano Code: public void fill() throws JRException, IOException { HashMap<String, Object> params = new HashMap<String, Object>(); System.out.println("Início Fill: " + now()); ResourceBundle myresources = ResourceBundle.getBundle("report"); Document docXML = JRXmlUtils.parse(new File(sXMLDataSource)); params.put(JRXPathQueryExecuterFactory.PARAMETER_XML_DATA_DOCUMENT, docXML); params.put(JRXPathQueryExecuterFactory.XML_DATE_PATTERN, "yyyy-MM-dd"); params.put(JRXPathQueryExecuterFactory.XML_NUMBER_PATTERN, "#,##0.##"); params.put(JRXPathQueryExecuterFactory.XML_LOCALE, Locale.ENGLISH); params.put("REPORT_QUADRICULADO", sImprimeQuadriculado ); params.put("REPORT_FOLHAROSTO", sImprimeFolhaRosto ); params.put(JRParameter.REPORT_RESOURCE_BUNDLE, myresources ); //params.put(JRParameter.REPORT_LOCALE, Locale.US); System.out.println("Rodar2 Fill: " + now()); //JasperFillManager.fillReportToFile(sFileJasper, sFilePrint, params); oFilePrint = JasperFillManager.fillReport(sFileJasper, params); System.out.println("Fim Fill: " + now()); }
×
×
  • Create New...