How To Underline Element With Logic

This recipe demonstrates how to underline element using dashed line or line in a report template. This can be done by inserting the below coding into “On Render Begin”:

Line:

if (count == 0){
this.setFontUnderline(true);
}

Dashed Line:

if (count == 0){
this.setBorderStyle(“Dashed”);
this.setBorderBottom(true);
}

HowToUnderlineElementWithLogic

To download the necessary files for this recipe, refer to the attached ZIP package.
HowToUnderlineElementWithLogic.zip (2.6 KB)