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?
Related
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?
When exporting a Crystal Report (2016) to excel format, I am getting extra columns in the report. This does not happen with any other export format. So empty data columns display in the first 30+ columns. How can I correct that?
This can get frustrating if the report is too complex, but if you design the report so that no fields overlap and there are no gaps between the fields, then the export should work better. However, if you have fields and objects in sections where the widths of things in one section differ from the width of things in another section, then you are going to get merged cells and empty cells in your export.
Sometimes its much easier to export the report using one of the (Data Only) Excel export options. This can help to force the export into single cells without merges and gaps, however, the exported spreadsheet will be unformatted and will require some manual formatting after the export when using this method.
I developed a report in Crystal that has to print to Excel.
When printing the report to Excel it adds the data in the columns correctly up until the sub report. The sub report is added in the first column of the next row, then it adds a blank line, and then it adds the remaining columns in the first column on the next row.
I have aligned and resized all the fields in the main report and in the sub report to be the same height. All sections that does not need to print is suppressed in the main report and sub report.
I have removed the margins in the sub report.
I have done the right click a section and arrange lines and fit section
I have tried printing with excel formats: - Excel 97 - 2000 (Extended) and Workbook (Extended)
I don't know what to do from here.
Screenshots of the report:
Design View Crystal
Printed Excel
Export options
The option Excel 97-2000 does not work as it uses multiple columns in Excel for one column as in the screenshot below: (this causes issues when trying to filter or sort the Excel sheet)
Multiple columns issue
I am using Crystal Reports 2013 Support Pack 4, Version 14.1.4.1327
I have a set of pivot tables that use external csv files as their data sources. The csv files originally contained dates in the format dd/mm/yy (e.g. 31/01/13). The pivot tables did not recognise these as dates. I converted the dates in the csv files to dd/mm/yyyy (e.g. 31/01/2013) but these were still not recognised as dates by the pivot tables.
I tried setting up a calculated field =DATEVALUE(date_from_csv) but when used in the pivot table (I'm using the Max option to select the most recent date) I get #VALUE! errors.
I have tried converting the csv file to xlsx and also importing the data into the workbook that contains the pivot table - but I can't change from the external connection to use the internal data. I don't want to rebuild the pivots as there are a lot of variables and formatting that would take ages to redo.
Any ideas??
The problem was caused by the date column being blank for some rows and I found that if I moved a row to the top (after the header line) that had all the fields filled in, then Excel got the formats correct and the pivot tables now work!
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.