Resize / Position Jasper Report Columns

Can Jasper reports dynamically change column width or position based on specific criteria?

For example, we have a report containing the following columns:

ID | Name | Course | Status |

Now it is possible to allow the report to display only the identifier of the person, and not the identifier and name. If we make the column of names null, we get a huge gap between the columns ID and course:

ID | _____ | Course | Status

Is it possible to programmatically move the remaining columns so that they all move to the identifier column?

+3
source share
1 answer

We had the same problem, and we did not find a solution, just ugly workarounds.

, , .

, . :

$P{field_name1} | $P{field_name2} 
------
$F{value1} | $P{value2} ...

. , , . , , .

: Jasper Design ( , ) - jrxml, .

JasperDesign jasperDesign = JRXmlLoader.load(myJrxml);
+2

Source: https://habr.com/ru/post/1786376/


All Articles