arek
arek

Reputation: 1332

Strikethrough font in DynamicJasper report

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

Answers (1)

arek
arek

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

Related Questions