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

elainetmy

Members
  • Posts

    10
  • Joined

  • Last visited

elainetmy's Achievements

  1. I solved my problem by adding a frame to my band and add the images into the frame. I'm not sure why it solves the problem. Elaine.
  2. Hi Idcl289, I at first also facing the problem that you are facing. I solved mine by changing the struts.xml. It is configuration problem in my case. I added this line <constant name="struts.action.excludePattern" value="/servlets/images*"/> Hope it helps. Elaine
  3. Hi, I've a problem in showing images in Page Header Band. This is my code. band = new JRDesignBand();band.setHeight(100); image = new JRDesignImage(jasperDesign);image.setX(450);image.setY(10);image.setHeight(30);image.setWidth(30);expression = new JRDesignExpression();expression.setValueClass(java.lang.String.class);expression.setText("$P{ImageUrl}");image.setExpression(expression);band.addElement(image); jasperDesign.setPageHeader(band); When I debugged the code, I noticed that after compilation of the report, it convert from JRDesignImage to JRBaseImage. May I know what's problem with my code? Thank you. Elaine.
  4. Hi Lucian, I'm currently using JasperDesign to create a dynamic report. I'm facing problem when want to create an image in header band. I'm using JRDesignImage to create the image. But when i compile the report, I debugged, I noticed the image converted into JRBaseImage. May I know what's wrong with my logic? Thanks. Elaine
  5. I figured out! You just have to fix the height of certain band. Jasper report itself will auto create a new page if the page is fully occupied. If I understood wrongly, please feel free to correct me. Thanks. Elaine
  6. Hi, I would like to ask is it possible to have a dynamic height of the JasperDesign? Or possible to dynamic create new page if the first page of report is fully occupied? Thanks. Elaine
  7. Hi, I've a problem here. Anyone has any idea which can dynamically add image element to Jasper Report without using iReport template? Thanks. Elaine
  8. Hi, Can anyone please tell me what problems with my code? I need some guidance. Code is in the attached file. Thanks. Elaine
  9. Hi hedges, Can you please provide some guidances? I have no idea where to start. Thanks. Elaine
  10. Hi all, I'm having problems when using JRLoader. Stack trace here: net.sf.jasperreports.engine.JRException: Error loading object from file : C:testtest.jrxml Caused by: java.io.StreamCorruptedException: invalid stream header: 3C3F786D at java.io.ObjectInputStream.readStreamHeader(Unknown Source)at java.io.ObjectInputStream.<init>(Unknown Source)at net.sf.jasperreports.engine.util.ContextClassLoaderObjectInputStream.<init>(ContextClassLoaderObjectInputStream.java:58)at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:122)... 5 more My code is here: String rFile="C:testtest.jrxml";[/code]JasperReport jasperReport = (JasperReport) JRLoader.loadObject(rFile);[/code]JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, map, new JREmptyDataSource());[/code] Any idea where went wrong? Thanks for your generous help.http://community.jaspersoft.com/sites/all/libraries/ckeditor/plugins/smiley/images/regular_smile.gif Elaine.
×
×
  • Create New...