TppDBRichText with mixed records
Delphi 6 Update Pack 2,
ReportBuilder 7.03
Hi,
I have a report with a DBRichText linked to a BlobField.
This Field is sometimes with plain text and sometimes with RTF text, and
when it renders plain text content it uses the text attributes of the last
RTF it printed.
Is there a way to avoid this?
How can I reset those attributes before printing any records?
Thank you in advance,
Massimiliano
ReportBuilder 7.03
Hi,
I have a report with a DBRichText linked to a BlobField.
This Field is sometimes with plain text and sometimes with RTF text, and
when it renders plain text content it uses the text attributes of the last
RTF it printed.
Is there a way to avoid this?
How can I reset those attributes before printing any records?
Thank you in advance,
Massimiliano
This discussion has been closed.
Comments
Take a look at the TextAttributes property of the RichText component. Try
adjusting these attributes before the component is printed.
Also, you could also try placing two components (DBRichText and DBText) and
toggle the visibility of each depending on the data type.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
For example this code gives me an error:
Mem_Nota_Comp.SelAttributes.Color := clBlack;
Why?
Massimiliano.
What error are you receiving? Do you have Graphics added to your uses
clause. You first need to select the text that you would like to change.
For instance, you could use the SelStart and SelLength to define the amount
of text you want edited.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com