Birt 4.3.1 - Different output on XLS and XLSX for crosstab [message #1621017] |
Tue, 17 February 2015 11:00  |
Eclipse User |
|
|
|
Hello,
I have a report containing two crosstabs. Each crosstab contains a grid with multiple rows and columns.
If I save the report in XLS, the output corresponds to the way the crosstab worked.
However, when saving the report in XLSX, each grid is merged into a single cell in the XLSX file. The task for the report demands it be in XLSX format.
I know the bug was reported on bugs.eclipse.org, with the ID 447399.
Has anyone however found a workaround to this?
|
|
|
|
|
Re: Birt 4.3.1 - Different output on XLS and XLSX for crosstab [message #1624209 is a reply to message #1623581] |
Thu, 19 February 2015 11:37  |
Eclipse User |
|
|
|
Found solution:
At first I had the following crosstab, drawn with blue, with a grid inside it, drawn with gray.

In the XLSX file, the gray grid would be outputted as a single cell, with all grid elements merged into one text.
As Jim Talbut says here, this is caused by the fact that nested elemented are handled with a "one cell in = one cell out" rule, which overrides everything else.
So, my solution: I added another grid, marked with red, like so:

So, just another grid with 1 row and 1 column, i.e., 1 cell. The outer red grid is treated with the "one cell in = one cell out" rule, and the inner gray grid is displayed correctly in the XLSX file.
Perhaps this will help someone else in the future. Cheers!
Attachment: initial.png
(Size: 28.97KB, Downloaded 1825 times)
Attachment: solution.png
(Size: 5.76KB, Downloaded 1823 times)
[Updated on: Thu, 19 February 2015 11:37] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04492 seconds