Error trying to change a font style at runtime.
I am getting a very strange error. Whenever I add the following code
(Delphi)
ppdesc.Font.Style := [fsBold];
to a before print of the ppdesc on a detail line I get the following
error:
EReadError with message 'Property PixelFormat does not exist'.
Anyone have any ideas? If I remove this, the program runs fine, but of
course the Font Style does not change. I want to change this style
with a data check based on the data. Whatever I try, I keep getting
this same error.
I even cleaned RB completely from my system and re-loaded. Same thing.
D6/ RB 7.04 Std.
Your help is appreciated greatly.
Thanks,
Chris
chris@starre.com
--
Chris Starre
Starre Enterprises, Ltd.
www.starre.com
(Delphi)
ppdesc.Font.Style := [fsBold];
to a before print of the ppdesc on a detail line I get the following
error:
EReadError with message 'Property PixelFormat does not exist'.
Anyone have any ideas? If I remove this, the program runs fine, but of
course the Font Style does not change. I want to change this style
with a data check based on the data. Whatever I try, I keep getting
this same error.
I even cleaned RB completely from my system and re-loaded. Same thing.
D6/ RB 7.04 Std.
Your help is appreciated greatly.
Thanks,
Chris
chris@starre.com
--
Chris Starre
Starre Enterprises, Ltd.
www.starre.com
This discussion has been closed.
Comments
component from a .dfm or other file such as RB's .rtm files or reading from
a database.
PixelFormat is a property of a TBitmap.
If you are reading up report definitions from a database and using the BDE,
try increasing the settings for MaxBlobSize and BlobsToCache.
If you are not running an application that uses the end-user designer, then
make sure that you have TppReport.SaveAsTemplate set to False.
If you still have an issue, please create a simple example using standard
Delphi components, ReportBuilder and the DBDemos data. Email in zip format
to support@digital-metaphors.com and we can check it out here.
--
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com