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

Setting ppRichText Attributes doesn't print

edited August 2001 in General
I'm trying to set
With ppRichText do
begin
SelAttributes.Size := 10;
SelAttributes.Name:= Arial;
end;

This is being set in the ppRichText.OnPrint method. In th Print Preview the
attributes are set fine but in the actual printout the default setting
prints.

Comments

  • edited August 2001
    Place a breakpoint in the OnPrint in order to verify that there is text
    which is selected when you print to the printer. Our TppRichText is based
    on Delphi's TRichEdit class and provides the same functionality. When I run
    our demo #29 in the main reports demo it previews and prints ok to our
    printers. The demo uses the OnPrint event to change the richtext.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.