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

divsen

Members
  • Posts

    25
  • 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 divsen

  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
  14. Hi Can anybody plz tell me how to display a jasper report on a webpage..i saw the webapp sample..but that din help.. What is the best way to display??a jsp page or a servlet..I am new to this.. I tried in both..it keeps saying the exception java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/fill/JRHorizontalFiller at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) at com.servlets.JasperPrintServlet.doPost(JasperPrintServlet.java:102) at com.servlets.JasperPrintServlet.doGet(JasperPrintServlet.java:63) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) When i try to fill the report.JasperPrintServlet is the servlet where i try to fill my report I have added the jasperreports-1.2.5.jar file in my lib folder and it has the class file.. I am using MyEclipse and Jboss 4 Can anybody plz help me Thanks Post edited by: divsen, at: 2006/08/27 01:31
  15. divsen

    Charts

    I want to display the Ages in the pie chart..Number of people with a particular age as one slice..I may have given the values wrongly..I am new to this.. Did this answer your question.. Thanks
  16. divsen

    Charts

    This is the demo file Iam not able to save it as pdf..if i save it a .jprint..i cannot post it here..i saved as html..but it is not clear..coz i can post only 1 file and the images the html needs are not there Post edited by: divsen, at: 2006/08/26 17:07
  17. divsen

    Charts

    Post edited by: divsen, at: 2006/08/26 17:03
  18. divsen

    Charts

    I am using Japer Reports 1.2.5 , Ireport 1.2.5 and jdk 1.5.. I have attached the results of the demo chart i get and of the one i created..mine has both pie and bar charts.. The pie chart does'nt show up..I want to change the ticks in bar chart..What reset type and increment type should i use..i have attached my jrxml file too.. If u want any more info..i will give.. Thanks Post edited by: divsen, at: 2006/08/26 17:08
  19. Hi Iam new to Jasper reports..Iam trying to fill my report with data..but it keeps giving me the following error.. java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/fill/JRHorizontalFiller at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) but the class is present This a code excerpt: <code> Map params = new HashMap(); params.put("Report_Name","Access Report"); String inputFile ="C:\Jasper\Access.jrxml"; JasperReport jasperReport = JasperManager.compileReport(inputFile); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, params, new NDataSource() ); </code> NDataSource is my dataSource...it Implements JRDataSource The input file is in c:->jasper Folder Iam using MyEclipse Version: 3.1.2 and Jboss 4.0 I have attached my Jasper Report [file name=Access.jrxml size=3742]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Access.jrxml[/file] Post edited by: divsen, at: 2006/08/25 23:31
  20. divsen

    Charts

    I am new to the forum.. If there is already a post regarding this..iam sorry..
  21. divsen

    Charts

    Hi I am new to IReport..Can anybody tell me how to create a chart..how do i change the co-ordinates for example in a bar chart..for me..it come like 0.0,0.5,1.0 etc..i don't want it like that... pie chart does'nt work for me..i tried the example given in demosamplescharts.. but nothing comes in the output..can anybody plz help me... Thanks
  22. I am receiving the following error when trying to startup 1.2.5 : Exception in thread "main" java.lang.NullPointerException at com.digitprop.tonic.SplitPaneDivider.oneTouchExpandableChanged(SplitPaneDivider.java:70) at javax.swing.plaf.basic.BasicSplitPaneDivider.setBasicSplitPaneUI(BasicSplitPaneDivider.java:172) at javax.swing.plaf.basic.BasicSplitPaneDivider.<init>(BasicSplitPaneDivider.java:132) at com.digitprop.tonic.SplitPaneDivider.<init>(SplitPaneDivider.java:56) at javax.swing.digitprop.tonic.SplitPaneUI.createDefaultDivider(SplitPaneUI:57) at javax.swing.plaf.basic.BasicSplitPaneUI.installDefaults(BasicSplitPaneUI.java:316) at javax.swing.plaf.basic.BasicSplitPaneUI.installUI(BasicSplitPaneUI.java:300} at com.digitprop.tonic.SplitPaneUI.installUI(SplitPaneUI.java:64) at javax.swing.JComponent.setUI(JComponent.java:650) at javax.swing.SplitPane.setUI(JSplitPane.java:350) at javax.swing.SplitPane.updateUI(JSplitPane.java:378) at it.businesslogic.ireport.gui.docking.DockingContainer.recreateAll(DockingContainer.java:517) at it.businesslogic.ireport.gui.docking.DockingContainer.insertPanel(DockingContainer.java:247) at it.businesslogic.ireport.gui.docking.DockingContainer.insertPanel(DockingContainer.java:256) at it.businesslogic.ireport.gui.docking.DockingContainer.addPanel(DockingContainer.java:124) at it.businesslogic.ireport.gui.MainFrame.<init>(MainFrame.java:554) at it.businesslogic.ireport.gui.MainFrame.main(Mainframe.java:710) It was working for some time..but now this happens..i even tried reinstalling..but no help..can u plz help me..iam using jdk 1.5..the splash screen hangs..when it says loading available font family names
×
×
  • Create New...