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

Export Excel problem


imams

Recommended Posts

Hi,

I am using JasperReports 1.2.7 in my J2EE project. I am able to export the generated report with Jasper API. My problem is the generated excel is not properly formatted- if the cell cannot accomodate the text content, then it does not warp. Any suggestions would be really appreciated. size=183]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/JasperExcel__Problem.JPG

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

I too had the same problem. I used the following code before calling the exporter.exportReport() function. Hope this solves your problem too. Please let me know if it worked or not.

 

 

Code:
exporter.setParameter(net.sf.jasperreports.engine.export.JRXlsExporterParameter.IS_FONT_SIZE_FIX_ENABLED,Boolean.TRUE);
Link to comment
Share on other sites

Thanks for your advise. I tried same, but still problem remains. I think your code snippet would make the font-size to fixed. However, the problem is not with word wrap entirely; it's breaking words to lines which is good. The problem is the last line in cell is NOT entirely visible, but gets cut down. I feel this is caused due to FIXED Row Height. Any thoughts?
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...