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

RichText Problem Again

edited February 2002 in General
Refer our last news , i use

Initialization
ppRegisterRichEditClass( TRichEdit);

Finalization
ppUnRegisterRichEditClass( tRichEdit );

to force use tRichEdit instead of tppRichEdit to overcome problem about
chinese character , but seens
OK in Win2k only . But In Win98 /Win ME , those cause endless Page Generate.
And i try to use RBAddOn
componet.

This time Problem Again , In Win2k , everything OK , but in Win98 , although
will not generate endless page , those tRBDBRichText generate Raw text ,
means like i set plaintext to true in tRichText Component.

i now i temp. to use Report Builder tppDrawRichText instead of
tRBDrawRichText , the problem seens gone , but i know
i can't print richtext large then 64K limit.

Anyone can help to us to solve this problem.

Thanks in Advance.

Comments

  • edited February 2002
    Create your own descendant of TppDrawRichText which overrides the Draw
    method. Then assign this new DrawCommandClass to your rich text component:

    ppRichText1.DrawCommandClass := TmyDrawRichText;
    ppReport1.Print;

    function TmyDrawRichText.Draw(aDevice: TppDevice): Boolean;
    begin

    Result := True;

    lRichEdit := ppCreateRichEdit(ppParentWnd);
    lRichEdit.Parent := ppParentWnd;

    lRichEdit.MaxLength := 200000000;

    {insert rest of code from TppDrawRichText.Draw}
    end;

    --
    Tom Ollar
    Digital Metaphors Corporation

    --
    Tom Ollar
    Digital Metaphors Corporation
  • edited February 2002
    Same as Before , Problem still exists.

  • edited February 2002
    Same as Before , Problem still exists.

  • edited February 2002

This discussion has been closed.