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

labels won't keep font style

edited April 2005 in General
I have a subreport on my report.

in it are 4 regions set to stretch and shirt respectively.

In each region is a label on the first line and a richtext on the second
line set to stretch.

all 4 labels are marked fsBold, fsUnderline.

There is code that sets the visibility of each of these 4 sections based
on whether or not there is text to put in the richtext part.

However it works out where there are 2 or 3 or 4 of the sections to
print out, only the first one is underlined and bold. The following
labels are PRINTED without underlining or bolding. The preview screen
shows it correctly.

What can be causing this and how would i fix it?

Thanks

Comments

  • edited April 2005
    Chris M wrote:

    I am using RB7 on Delphi 7

    I also tried to replace the TppLable with a TRBText from RBaddon with
    the same results
  • edited April 2005
    Chris M wrote:

    It appears that this happens when it prints a ppLabel and the next
    ppLabel has the same style. If i position new lables with different
    styles between the labels with the same styles it will print fine.
  • edited April 2005
    Hi Chris,

    As a test, try commenting out all your event handlers and see if you can
    get the labels to print correctly. Usually when the printed output does not
    match the previewed output, it is due to some event code firing twice or not
    at all. If this does fix the problem, periodically begin adding the event
    code back to try to isolate the issue.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2005
    Nico Cizik (Digital Metaphors) wrote:

    It occurs the same with no event code.
  • edited April 2005
    Hi Chris,

    I'm unable to recreate this behavior on my machine. If possible, please
    send a small example demonstrating this issue that I can run on my machine
    in .zip format to support@digital-metaphors.com and I'll take a look at it
    for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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