Changing Default Template Font
The output report from RTF template uses template-level default fonts for empty report spaces and empty table cells. If the default font size does not match the font height used in a template, a final report could look different from user expectations. In this case, the user can change the template default font either in design time or runtime:
-
Design time
Set the xdo.cfg for the font. For example, set the default font for a specific report to be Helvetica, size 8:
<property name="rtf-output-default-font">Helvetica:8</property> -
Runtime
Use PeopleCode to set the font. For example, set the default font for a specific report to be Times New Roman with height 10:
&asPropName = CreateArrayRept("", 0); &asPropValue = CreateArrayRept("", 0); &asPropName.Push(""rtf-output-default-font"); &asPropValue.Push(""Times New Roman:10"); &oRptDefn.SetRuntimeProperties(&asPropName, &asPropValue);