Jump to content

Excel Export - Merge cells -


sadakar
Go to solution Solved by grouchysmurf,

Recommended Posts

Design of the report : 

design.png.2d09ddba82f804573d7ee1df0e67b4ea.png

Expected output AND Jasper Design Studio ouput when selecting(check box is ticked Cell properties of Excel export) 

expectedoutput.png.2e703b202677ea3aaa7a2820e9ac7a65.png

Problem :

Current output when viewing the reort output in server

problem(4).png.b12c29187efa8825cbaf7e4456712266.png

Could anybody solved this issure previously ? 

My trails are : 

http://community.jaspersoft.com/wiki/excel-export-settings

http://jasperreports.sourceforge.net/sample.reference/xlsfeatures/index.html#xlsfeatures

Added " <property name="net.sf.jasperreports.export.xls.row.outline.level.1" value="End"/>" to all the cells in that are placed in group by band and to the cells(Text fields) in Details band. 

No luck ..!! 

Did anyone face the same issue & if you had fixed this please share your inputs.

Help would be appricated much 

Thanks, 

Sadakar Pochampalli

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 years later...
  • Solution

I realize this is an old question, but I recently dealt with the same issue.  After too many hours of frustration, I found a solution.  The OP's report requires cells to merge across rows. Jasper prohibits this by default.  Try this:

<property name="net.sf.jasperreports.export.xls.collapse.row.span" value="false"/>

The default for this value is true.  Set it false and voila!

Link to comment
Share on other sites

grouchysmurf,

Thanks for taking the time. These QnA's, after they might've helped one person, can be pruned and edited to make them more valuable to others. So, answering an old question, if you are adding or updating knowledge, is great.  

What versions of JSS. iReport, JRL, etc. did you use?  Just for the record.

Link to comment
Share on other sites

  • 1 year later...

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