RichText Problem Again
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.
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.
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com