Reputation: 1332
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.
Upvotes: 0
Views: 93
Reputation: 1332
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);
}
}
Upvotes: 0