holedark Posted January 4, 2011 Share Posted January 4, 2011 Hello!I'm trying to generate a report in XLS with JasperReports and put the header (an image) only in print view, not in the report. I read that in version 3.7.6 you can do with the property PROPERTY SHEET HEADER.1. How do I move the property to JRXlsExporter? JRParameter not find it on to pass the method setParameter.2. Can it be done in the irepors ide?Thank you very much.PD: Excuse my English. Link to comment Share on other sites More sharing options...
szaharia Posted January 5, 2011 Share Posted January 5, 2011 Hi,At the moment there are no export parameters associated with the SHEET_HEADER properties. If you consider they are necessary, please post a feature request here.Thank you,sanda Link to comment Share on other sites More sharing options...
holedark Posted January 5, 2011 Author Share Posted January 5, 2011 Thank you very much for the reply shertage. I had read that the bug had been fixed in version 3.7.5.http://jasperforge.org/projects/jasperreports/tracker/view.php?id=4341That refers to another feature?. I really want to align left the header (text or picture if possible) and listed in the print view.Thank you very much again.Greetings. Link to comment Share on other sites More sharing options...
szaharia Posted January 5, 2011 Share Posted January 5, 2011 Indeed, that bug was fixed. But taking into account the later approach, based on the use of properties only, we no more associate hint properties with export parameters.The only problem appears when hint properties are defined at report level (and this is the case here) and they require dynamic values. In this case a report parameter is needed. So, if you need to set the header texts statically, just set the three properties below with static values:net.sf.jasperreports.export.xls.sheet.header.leftnet.sf.jasperreports.export.xls.sheet.header.centernet.sf.jasperreports.export.xls.sheet.header.rightBut if you need to set dynamic values for header texts, please post the feature request at the project tracker page.Thank you again,sanda Link to comment Share on other sites More sharing options...
holedark Posted February 23, 2011 Author Share Posted February 23, 2011 Hi shertage,one more thing. Is there any way to remove the header on the first page and display it in the rest?Very Thanks!!Greetings Link to comment Share on other sites More sharing options...
szaharia Posted February 25, 2011 Share Posted February 25, 2011 Hi,At the moment this is not possible (unless you create your own XLS exporter which extends the JRXlsExporter, and override the createSheet(String name) method).If you think this is a definitely necessary feature, you are welcomed to post a RFE on the mantis tracker.Hope this helps,sanda Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now