Jump to content
Changes to the Jaspersoft community edition download ×

divsen

Members
  • Posts

    25
  • Joined

  • Last visited

divsen's Achievements

Explorer

Explorer (4/14)

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

Recent Badges

0

Reputation

  1. Hi, Is there any way to dynamically increase the size of a image in jasper report? I am creating a chart using JFreechart and putting it in the report as a image. The problem is the chart is created dynamically, so i don't know the size of it. For a chart with horizontal orientation, the bars are crushed together and also when the legend becomes big, it occupies all the space and the chart is not visible at all. Can anybody plz help me. Thanks
  2. hi I am trying to export my report in XL format.The exported XL does not have grids.Can anybody help me. The grids appear in open office but not in Microsoft Excel
  3. Is it possible to export images to an Excel file? We are working with JFreeChart and couldn't find any documentation saying if it's possible or not to do this.
  4. Thanks for your help. now my problem is 08:36:03,015 INFO [sTDOUT] Caused by: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. The method loadImage(byte[]) in the type JRImageLoader is not applicable for the arguments (Byte) value = (java.awt.Image)(net.sf.jasperreports.engine.util.JRImageLoader.loadImage(((java.lang.Byte)field_company__companyLargeLogo.getValue()))); <-------> Bcoz the data type i gave for the field is java.lang.Byte so i tried byteValue() but that also did not help 08:40:22,827 INFO [sTDOUT] Caused by: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. The method loadImage(byte[]) in the type JRImageLoader is not applicable for the arguments (byte) value = (java.awt.Image)(net.sf.jasperreports.engine.util.JRImageLoader.loadImage(((java.lang.Byte)field_company__companyLargeLogo.getValue()).byteValue())); <-------> What field type should i give to keep the value as byte[] array.
  5. I tried that it says 12:36:31,562 INFO [sTDOUT] Caused by: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. JRImageLoader cannot be resolved value = (java.awt.Image)(JRImageLoader.loadImage(((java.lang.Byte)field_companyLargeLogo.getValue()))); <-----------> Can u plz help me
  6. Hi I have many images stored in my database as BLOB.when i get the data they are as bytes. so i have field image which of type byte. how do i print the image on the report. how do i convert it into inputstream or any other format. Is there any way to do it in ireport or can it be done only in code like this: InputStream in = new ByteArrayInputStream(byte[]); Thanks
  7. Hi I am using Jasper Reports to create my reports..everything is fine with PDF..the problem is with HTML..the images and Charts does'nt show up...i used isLazy property and the images are appearing..but my chart is'nt... i saw the webapp sample and included ImageServlet in my web.xml..but that din help... here is the code i use for HTML.. FacesContext faces = FacesContext.getCurrentInstance(); HttpServletResponse response = (HttpServletResponse) faces .getExternalContext().getResponse(); HttpServletRequest request = (HttpServletRequest) faces.getExternalContext().getRequest(); response.setContentType("text/html"); response.setHeader("Cache-Control", "cache, must-revalidate"); response.setHeader("Pragma", "public"); ServletOutputStream outputStream = response.getOutputStream(); request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint); JRHtmlExporter htmlExporter = new JRHtmlExporter(); htmlExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); htmlExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream); htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "/servlets/images?image="); htmlExporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, false); htmlExporter.exportReport(); outputStream.flush(); outputStream.close(); faces.responseComplete(); can anybody plz help me... Post edited by: divsen, at: 2006/09/13 20:59
  8. divsen

    Charts

    Thank you very much....was caught up with this problem for so long..
  9. hi I am using a datasource to fill my report..How can i fill my sub report which uses the same datasource.. Actually it is a list of bean values and i loaded it into a datasource and i am filling my report. For example: List of bean Order for main report.. The main report takes values like Order.getOrderName(),Order.getOrderNumber(),Order.getOrderDate() etc... The sub report takes values present in Order.getOrderServices..which is again a list.. List Services = (List)Order.getOrderServices(); for(int j=0;j<Services.size();j++) { OrderService orderService= (OrderService)Services.get(j); data[j][1]=orderService.getService().getServiceName(); data[j][2]=orderService.getOrderServicePrice(); } This is not my exact code..just to show what values i want in my sub report.. How do i do this.. If iam not clear..i can provide more details.. Thanks Post edited by: divsen, at: 2006/08/29 17:57
  10. divsen

    Charts

    It is not showing any errors..Is there any settings i must make..or nay jar files that must be added..i downlaoded the ireports windows installer and installed it on my system.. one more question..when it try to use a report with a chart in a web page..it says some org package class is not found..which is the jar i must include for that..i have included the jasperreports-1.2.5.jar file in my lib folder.. Thanks
  11. divsen

    Charts

    I have attached my result for the file u gave.. I think something is set wrongly in my system..which makes it appear like this..Because i cannot think of any other reason.. This is driving me crazy.. Can u post what result the same file produces for you. Thank you very much.. Post edited by: divsen, at: 2006/08/28 21:40
  12. i added the jar file and it is working.. Thank you very much..
  13. divsen

    Charts

    I tried everything you told..but still my pie chart does'nt show up...What should i do if i want the same results with a bar chart?? Thanks
×
×
  • Create New...