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

sreepriyar

Members
  • Posts

    23
  • Joined

  • Last visited

sreepriyar's Achievements

Explorer

Explorer (4/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Any details on this? Can some one pls reply?
  2. Hi all, Can some one please help in identifying the steps needed to generate a report in Tiff format in JasperReports? I understand we need to use JAI for this purpose. But I have been unsuccesful so far. Can someone pls let me with any code snippets as to how this is actually done? Thanks for your help in advance.
  3. Hi all, I was able to create a report in RTF format, but this is my requirement. The fields that are getting created in the report seem to be editable textboxes. Is there a way to just make them like normal text in the document? (i.e) I am getting a box with the details in the RTF report, instead I just want a normal text without the box. Is this possible? Please advise Thanks
  4. Thanks. Its for the purposes of faxing the report.My requirement is to embed some codes in the PDF created, which can be used by the Fax driver t fax the document
  5. Hi all, Is there a way to make a field as hidden in JasperReports? I want a particular field to be added to the generated PDFreport but it has to be hidden.Is this possible? Thanks,
  6. I found this link which solved my issue.In case any one else has the same problem here is a ref http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=8&id=19407#19407
  7. Hi all, I have the following requirement. 2 fields need to be in same column(say Field1 and Field2) Field1 should always be displayed but field 2 should be displayed only when field1 has a certain value. Can this be achieved in Jasper Reports. Thanks,
  8. Hi all, I understand that if we want to toggle between 2 values for a field we can use condition?"":"" clause, what if I want a if elseif condition(meaning different values for same field depending on the condition).something like : if(){ }else if(){ }else if(){ } can I achieve this is JasperReports? Please suggest.
  9. The PDf generates locally I mean if I specify a location for the PDF file to be created I can see the PDF file with all details and images. But dispalyign the same in browser, I get junk characters? Code: //works JasperExportManager.exportReportToPdfFile(jasperPrint, "C:/simple_report.pdf"«»); //does not work byte[] bytes =JasperRunManager.runReportToPdf(subreport4, parameters, simpleDS); response.setContentType("application/pdf"«»); response.setContentLength(bytes.length); sos.write(bytes,0,bytes.length); sos.flush(); sos.close();
  10. I am not able to access the link specified. I have the same issue. Can someone please help?
  11. Could someone tell me why I get this problem? Caused by: org.xml.sax.SAXParseException: Premature end of file. Any help will be appreciated
  12. Could someone tell me why I get this problem? Caused by: org.xml.sax.SAXParseException: Premature end of file. Any help will be appreciated
  13. I modified the code in the following manner: Code: InputStream stream1 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/TestFraud.jrxml"«»); JasperReport subreport1 = JasperCompileManager.compileReport(stream1); InputStream stream2 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/TestFraudPage2.jrxml"«»); JasperReport subreport2 = JasperCompileManager.compileReport(stream2); InputStream stream3 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/subreport.jrxml"«»); JasperReport subreport3 = JasperCompileManager.compileReport(stream3); parameters.put("SIMPLE_DATA", SIMPLE_DATA); parameters.put(JRParameter.REPORT_LOCALE, new Locale("en"«»)); ResourceBundle bundle =ResourceBundle.getBundle("MyResources"«»); parameters.put(JRParameter.REPORT_RESOURCE_BUNDLE, bundle); parameters.put("Subreport1", subreport1); parameters.put("Subreport2", subreport2); parameters.put("Subreport3", subreport3); ServletOutputStream sos = response.getOutputStream(); InputStream stream4 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/master.jrxml"«»); JasperReport subreport4 = JasperCompileManager.compileReport(stream4); response.setContentType("application/pdf"«»); // JasperRunManager.runReportToPdfStream(stream4, sos, parameters, simpleDS); byte[] bytes = JasperRunManager.runReportToPdf(subreport4, parameters, simpleDS); sos.write(bytes, 0, bytes.length); sos.flush(); sos.close(); Now I get some junk characters in the browser instead of a PDF File. Can some one please poitn otu the issue?
  14. I modified the code in the following manner: Code: InputStream stream1 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/TestFraud.jrxml"«»); JasperReport subreport1 = JasperCompileManager.compileReport(stream1); InputStream stream2 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/TestFraudPage2.jrxml"«»); JasperReport subreport2 = JasperCompileManager.compileReport(stream2); InputStream stream3 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/subreport.jrxml"«»); JasperReport subreport3 = JasperCompileManager.compileReport(stream3); parameters.put("SIMPLE_DATA", SIMPLE_DATA); parameters.put(JRParameter.REPORT_LOCALE, new Locale("en"«»)); ResourceBundle bundle =ResourceBundle.getBundle("MyResources"«»); parameters.put(JRParameter.REPORT_RESOURCE_BUNDLE, bundle); parameters.put("Subreport1", subreport1); parameters.put("Subreport2", subreport2); parameters.put("Subreport3", subreport3); ServletOutputStream sos = response.getOutputStream(); InputStream stream4 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/master.jrxml"«»); JasperReport subreport4 = JasperCompileManager.compileReport(stream4); response.setContentType("application/pdf"«»); // JasperRunManager.runReportToPdfStream(stream4, sos, parameters, simpleDS); byte[] bytes = JasperRunManager.runReportToPdf(subreport4, parameters, simpleDS); sos.write(bytes, 0, bytes.length); sos.flush(); sos.close(); Now I get some junk characters in the browser instead of a PDF File. Can some one please poitn otu the issue?
×
×
  • Create New...