labels won't keep font style
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
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
This discussion has been closed.
Comments
I am using RB7 on Delphi 7
I also tried to replace the TppLable with a TRBText from RBaddon with
the same results
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.
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
It occurs the same with no event code.
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com