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

Export subreports in multiple worksheets in excel


sach411

Recommended Posts

Hi,

I’ve going through lot of posts to make export to excel in multi tab working on JasperReportsServer.

I’ve 3 sub reports which are needed to be exported in separate tabs in excel. Tried various approaches as below


added following properties in jrxml in line element in each subreport. The set up works without any issues in Jaspersoft Studio i.e. development environment. However when I put the report to JasperReportsServer, I get the exported excel in one tab only.

net.sf.jasperreports.export.xls.break.before.row

net.sf.jasperreports.export.xls.break.after.row

also tried setting following property

net.sf.jasperreports.export.xls.one.page.per.sheet

thirdly, Have also set on JasperServer, in WEB-INF/classes/jasperreports.properties,

# report exporter hints override export parameters net.sf.jasperreports.export.parameters.override.report.hints=false

Not sure if I need to update anything in the export parameters (parameters to the exporter classes) defined in WEB-INF/applicationContext.xml

There are numerous posts suggesting fix however I could not get this working. Would be great if any pointers on same are provided.

Thank you in advance...

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 2 years later...

my experience is that

net.sf.jasperreports.export.xls.break.before.row

net.sf.jasperreports.export.xls.break.after.row

do work only in some type of elements, such as static field, textfield and so on. It did work fine when placed in the very first (left-top) such element.

 

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...