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

sreepriyar

Members
  • Posts

    23
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by sreepriyar

  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?
  15. Hi all, I have a master report with 2 subreports and inside one of the subreport I have another child report. I have to display the PDF format of this report in the IE. Please find code snipped below Code: InputStream stream1 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/TestFraud.jrxml"«»); JasperDesign jasperDesign = JRXmlLoader.load(stream1); JasperReport subreport1 = JasperCompileManager.compileReport(jasperDesign); InputStream stream2 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/TestFraudPage2.jrxml"«»); jasperDesign = JRXmlLoader.load(stream2); JasperReport subreport2 = JasperCompileManager.compileReport(jasperDesign); InputStream stream3 = getServletConfig().getServletContext().getResourceAsStream("WEB-INF/reports/subreport.jrxml"«»); jasperDesign = JRXmlLoader.load(stream3); JasperReport subreport3 = JasperCompileManager.compileReport(jasperDesign); 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"«»); jasperDesign = JRXmlLoader.load(stream4); System.out.println("testStream1"«»); byte [] bytes = JasperRunManager.runReportToPdf(stream4, parameters, simpleDS); I get an EOF exception at the point where the PDFis generated. Can some one pls help with the issue? Thanks
  16. Hi all, I have a particular field which if it has some value, I should create a new column and display the details in that. If it does not contain the details, I should not display the column. Is there any way to handle this in Jasper report? Lets say I have 2 columns in my report. (field1 and field2) IF (field1.equals(showme), then create a new column(field3) and display field1details, else proceed in same manner. case 1: field1!=showme display Field1 Field2 case 2 : field1==showme display Field1 Field3 Field2 Can I do this?
  17. HI all, I have teh following requirement: When a user clicks on a button in the screen, we have to build a PDF report ( using Jasper- which is Fine) and we should also fax the generated report. In order to FAx the PDF, the details of the Phone number to fax the details should be programmatically embedded. Is there any way to do this? Please let me know Thanks
  18. Hi all, I have been looking for some options to display a selected and unselected checkbox in my PDF report. Can some one please let me know as to how to achieve thiswith Jasper reports. Thanks
  19. Hi all, Please let me know how I can achieve the following in JasperReport: I need to display to the user a selected checkBox(I mean a square with 2 crosses) and unselectedCheckBox(only an empty square) in a PDF report. I was thinking of creating 2 images one that is checked and one unchecked and toggle both. As we have many such fields in the report where we need to show these check boxes, I think using too many such images may create a performance problem. Is there a way in JasperReport to achieve this feature? I was looking at IReport for designing purposes and it did not have such a feature. Thanks in advance for your help. All Jasper Experts please respond
  20. Hi all, I have a Java object where I define the keys dynamically. Lets assume key = label.name Now in the report I want to use this key value in conjunction with resourcebundle. eg $R{$F{key}}, so that the keys can be dynamically picked up from the resource bundle. Is there a way to achieve this in Jasper Reports or is the only solution to manually look up the resource bundle in the java code and pass the value to the jrxml file. All Jasper experts,Please respond.
  21. Hi all, I have a master report with 2 subreports. One on the subreports have a nested subreport inside. I am struggling with passing the datasource(JRBEanCOllectionDataSource) between the subreport and nestedSubreport as I am pretty new to Jasper reports. I understand that we have to use parameters to achieve this but I have not been successful. Can some one please provide a simple example or poitn me to a source with examples,explaining how to configure in jrxml and how to pass the datasource between these reports. Your help will be very much appreciated as I have been struggling with this for quite sometime now. Thanks, Priya
×
×
  • Create New...