Strikethrough font in DynamicJasper report

70 views Asked by At

How to set attribute strikethrough to Font in DynamicJasper. There are simple ways to make font italic or underlined but no way to change strikethrough.

1

There are 1 answers

0
arek On

Have found the solution - quite easy to use ex in ConditionalStyle:

public class StrikeThroughJasperStyle extends Style {

@Override
protected void setJRBaseStyleProperties(JRBaseStyle transformedStyle) {
    transformedStyle.setStrikeThrough(true);
}

}