Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Fonts problem.

edited April 2004 in General
Using D 7 and RB 7.03. When we look at the RTM at design time the font's of
some variable fields are Bold style. They are on TppRegions in the
HeaderBand and the SummaryBand. But when we run the report these fields lose
their Bold style and print with regular font. Is there a "ParentFont"
property for the TppVariable and TppLabel fields that is overriding the
font. At runtime when we put a break point in the
OnHeaderBandBeforePrint/Generate and OnSummaryBandBeforePrint/Generate we
can see that the Font.Style property has fsBold in it. It just does not
print as Bold in the final report.

Can you suggest where to look ? Last time we saw this working correctly was
in a project that we did using Rb 7. So has anything changed from 7 to 7.03
regarding this?

Is there a way to track changes to the font while the report is actually
running? Something maybe wrong in our code itself but we are just not able
to pin point.

Thanks in advance.
Vikram

Comments

  • edited April 2004
    Vikram,

    There have been no changes to the font logic from RB 7 to RB 7.03. My
    suggestion is to comment out all your event handler code and see if that
    fixes the issue. If so, periodically begin adding your code back to isolate
    the problem area. You might also try creating a very simple report with a
    variable inside a region on a report and nothing else and see if you can
    generate the same results.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2004
    Ok thanks.
    But just to confirm, report builder components do not have "ParentFont"
    behavior, correct?

    Vikram

  • edited April 2004
    Hi Vikram,

    This is correct. All the text components in ReportBuilder descend from
    TppPrintable which contains a Font property that is set by the user. This
    also defines the font of the Text DrawCommands.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.