Jump to content

Property PROPERTY SHEET HEADER LEFT exporter or ireport


holedark

Recommended Posts

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

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

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.left
net.sf.jasperreports.export.xls.sheet.header.center
net.sf.jasperreports.export.xls.sheet.header.right

But 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

  • 1 month later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...