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

RichText Problem

edited January 2002 in General
D5Ent , Rb 6.03



Use tppRichEdit seens have many problem & unstable in enter chinese
Character. it always have 'invalid pointer operation' error and cause whole
window hang.

and after i use below statement to force use delphi 'trichedit'.Those error
gone. and i want to know
is any problem which use delphi trichtext instead of tpprichedit?

initialization
ppRegisterRichEditClass( tRichEdit );
finalization
ppUnRegisterRichEditClass( tRichEdit );

Comments

  • edited January 2002
    Our TppRichEdit relies on TRichEdit, so you shouldn't have any problems.
    There are multiple versions of the RichEd dll. Our code tries to load the
    newer RichEd20.dll. If you have both versions on your machine, then perhaps
    TRichEdit is using the older RichEd.dll, which works for you.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2002
    So , if i use below statement and work fine , then i can safety to use it ,
    is that correct ?


    initialization
    ppRegisterRichEditClass( tRichEdit );
    finalization
    ppUnRegisterRichEditClass( tRichEdit );

  • edited January 2002
    Yes, you can use TRichEdit this way if you'd like:) I'm running a sample
    like this and it works fine.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2002
    Excuse me butting in here..

    But can I remind DM that despite the fact that "... TppRichEdit relies on
    TRichEdit...", I have experienced strange difference between what characters
    TRichEdit happily displays and the way that TppRichEdit works. Remember Jim
    I had a dialog (in newsgroup) with you about vanishing Chr 173, just before
    Xmas.

    I have never got to the bottom of what is happening here, why TppRichEdit is
    not like TRichEdit, why one character is not displayed. It is not the DLL,
    but I suspect it could be do to with language settings, and this Chinese
    character problem could be related??

    Sarah
  • edited January 2002
    True, TppRichEdit does rely on TRichEdit. TRichEdit uses the older version
    of the RichEd.dll. If registering TRichEdit for RB reports works better for
    the Chinese characters, then that is a workaround until we figure out why a
    TppRichEdit won't work when it tries to use the more recent RichEd20.dll.
    The newer RichEd20dll may be loaded by using the TppRichEdit. It is possible
    that both dlls may be residing on a machine, and explains the different
    behavior given by registering one class or the other. Look in
    RBuilder\Source\ppDrwCmd.pas in the method:
    procedure TppRichEdit.CreateParams(var Params: TCreateParams);


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.