jasper reports: exporting table with grouped headers to excel - jasper-reports

let's say, I have a table in my report with complex header like this
when I export it to either xls or xlsx using Jasper Reports Server it prints like this (Excel 2010):
Column 1 height should be equal to Column 2 + Header height
Enviroment: Jasper Reports Server CE 4.5.1, tried latest version (5.0.4) - same (sad) result
How can I correctly export such header to Excel?
Does anybody knows any workarounds?

JasperReportsServer is configured to collapse row spans, see the collapseRowSpan property of the xlsExportParameters bean in WEB-INF/applicationContext.xml.
Set that property to false to have the group headers span two rows.
iReport has the same property at Options/Export Options/Excel/Collapse Row Span.

Related

How may I create a table autofilter on a Jasper .xlsx report output - one autofilter per sheet?

I am creating a Jasper report via Jaspersoft Studio 6
I am using the following property to export my report into two separate Excel sheets (tabs): net.sf.jasperreports.export.xls.break.after.row
My report consists of two tables, one table per sheet. So far, I have no issue creating this report.
However, I would also like to implement an excel auto filter on each table header using the following property: net.sf.jasperreports.export.xls.auto.filter
I added the auto filter property to both table headers, with a start and end on both. But when I run the report, the filter only displays on my last table (the one on the second sheet). I imagine this may happen because in Excel, you are only allowed one autofilter per sheet.
How may I put an autofilter on BOTH tables of a jaspersoft .xlsx report output?

JasperReports - xls file generation rows and columns are not displayed properly

I am generating an .xls format invoice bill in Jasper report using Java. The file has been created with the correct values, but the rows and columns are not aligned properly. Below is a screenshot of the output:
What do I need to do to make the columns align correctly?

Editing the column size inside subreport using jasper API

I have a jrxml file containing six subreports.
I need to programatically hide the columns displayed in these subreports.
I did search for a solution, but could not find a example for modifying the columns in subreports and I am unable to find a way with jasper API to pick the subreport from JasperReport class.
I did check dynamicreports API. But it seems subreport can't already have columns defined in it.

Crystal Report export to excel data in wrong column due to null fields

I try to export a crystal report to excel. The report is list of data. Some date may be omitted but, of course, the column order must be respected. But with an empty field all the data are shifted to the left and the column is not right any more.
How can I setup the crystal report to add empty cell for an empty data field ?
I put a blank text file field same height and width Over the field with the issue.
Then moved the field to the back. It worked, all data is aligned correctly in the Excel spreadsheet.
You'll need to experiment with the report's Excel-export options (File | Export | Report Export Options...). Consider 'Data Only (XLS)'.
I usually use TTX format, as it seems to work better than XLS.
Try add export option .ExcelUseConstantColumnWidth = false;

Crystal reports CSV incorrect generation

When setting ExportFormatType.CharacterSeparatedValues crystal report generates every row of data prefixed with column names (Report Headers). Why it does this? How it could be fixed? Usually it is preferred to have single header. For excel export type - generated report looks ok (only single header for all rows).
I am using crystal reports 11.5.3700.0. Visual studio 2008, .net 3.5 sp1
If the type of delimiter is not of concern, you may want to try 'Tab Separate Text (TTX)'.
You need to check the option to 'Isolate report/page sections' in the export options for that section.