![](http://content.invisioncic.com/i328763/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
elainetmy
-
Posts
10 -
Joined
-
Last visited
Content Type
Forum
Downloads
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Events
Profiles
Posts posted by elainetmy
-
-
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
-
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. -
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
-
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
-
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
-
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
-
Hi,
Can anyone please tell me what problems with my code?
I need some guidance.
Code is in the attached file.
Thanks.
Elaine
-
Hi hedges,
Can you please provide some guidances? I have no idea where to start.
Thanks.
Elaine
-
Hi all,
I'm having problems when using JRLoader.
Stack trace here:
net.sf.jasperreports.engine.JRException: Error loading object from file : C:testtest.jrxmlat net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:127)at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:99)at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromFile(JRLoader.java:90)at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:81)at com.ebx.jasperReport.util.Test.generatePDFReport(Test.java:125)at com.ebx.jasperReport.util.Test.main(Test.java:84)Caused by: java.io.StreamCorruptedException: invalid stream header: 3C3F786Dat 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 moreMy 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.gifElaine.
JRDesignImage compile become JRBaseImage in Page Header Band
in Products
Posted
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.