Any Code to set font in a report?

nikeman77nikeman77 Member Posts: 517
Hi everyone,

is there a code or anything to programatically set a textbox font to bold in a report?

Answers

  • GRIZZLYGRIZZLY Member Posts: 127
    I think, no.
    In my case I used a special Report Section with Bold set to TRUE.
    So, it shows to output when some expression was calculated. In other case a section with normal format was outputed.
    Sincerely yours, GRIZZLY
    Follow my blog at http://x-dynamics.blogspot.com
  • nikeman77nikeman77 Member Posts: 517
    hi GRIZZLY,

    hows the code looking like ?
  • GRIZZLYGRIZZLY Member Posts: 127
    2 Report Sections:
    1st section with normal font shows when some expression is False:

    Footer Text, Body (3) - OnPreSection()
    CurrReport.SHOWOUTPUT := ("Footer Text".COUNT > 0) AND (PrintFooterLine) AND (NOT "Footer Text".Bold);

    2nd section with bold font shows when some expression is True:
    Footer Text, Body (2) - OnPreSection()
    CurrReport.SHOWOUTPUT := ("Footer Text".COUNT > 0) AND (PrintFooterLine) AND ("Footer Text".Bold);

    Hope you understand the idea.
    Sincerely yours, GRIZZLY
    Follow my blog at http://x-dynamics.blogspot.com
  • nikeman77nikeman77 Member Posts: 517
    grizzly,

    what a shame, i should have thought of it!
    a million thanks!
Sign In or Register to comment.