Jump to content

Jaspersoft server excel export cell height increases


sreerambabu.palaniswamy

Recommended Posts

 

I've designed the report in Jaspersoft (5.6.1). When I upload it to server and export to excel, the cell height changes according to the next cell item.

Assume there is text field of height 0.20 inches and next to it is a Chart of Height 5.20 Inches. When I export this design from studio, it works fine. But when I export to excel from JasperServer, the Text field cell height increases according to height of Chart.

I'm sure I kept each field's position type to Fix realtive to Top and Strech type to No strech.

Is there any special settings to be done on Server side too?

FYI, I followed all tips for Excel export

Thanks

Sreeram

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Since the report is exporting properly in JSS, make sure your jasperreports.properties match between Jaspersoft Studio (Properties -> Jaspersoft Studio -> Properies ) and Jasper Reports Server (/webapps/jasperserver-pro/WEB-INF/classes/jasperreports.properties)

Watch specially the net.sf.jasperreports.export.xls.* ones.

Link to comment
Share on other sites

Hi Maria,

When I open the Design file in JSS, the default properties shows the "Configure workspace setting".In the workspace settings, I don't see the Excel export features. Also there is an option for Use Project settings, but this option is not selected by default. However all export settings are done at the project level.

 

As I couldn't change the deafult use setting to Project for JSS, I've added the following properties to JSS under Workspace settings.

 

net.sf.jasperreports.export.xls.one.page.per.sheet=true
net.sf.jasperreports.export.xls.remove.empty.space.between.rows=false
net.sf.jasperreports.export.xls.remove.empty.space.between.columns=false
net.sf.jasperreports.export.xls.white.page.background=true
net.sf.jasperreports.export.xls.detect.cell.type=true
net.sf.jasperreports.export.xls.ignore.graphics=false
net.sf.jasperreports.export.xls.create.custom.palette=true
net.sf.jasperreports.export.xls.font.size.fix.enabled=false
net.sf.jasperreports.export.xls.ignore.cell.background=false
net.sf.jasperreports.export.xls.ignore.cell.border=false
 
I appened the same in /webapps/jasperserver-pro/WEB-INF/classes/jasperreports.properties and restarted the services. But still the issue persists when I export to excel.
 
ewhat_it_exports_in_excel(1).png.d2dc9f54ebd3cedaeac774ff0c16149e.pngit_should_export_like_this(2).jpg.2e70187456edcfc1ec4cc4b24dddbf95.jpg
 
Please see the difference how it exports to excel from server and from JSS respectively. It happens not only with Chart. It happens even with the text field which are adjacent and the height is different.Please do advise
 
Thanks
 
sreeram
 
 
 
 

 

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