Home General

RichEdit problems

edited June 2001 in General
Hello,

I have a strange problem with printing a richtedit field.
I have a report, that has in its detail band only one richedit
component.
Before I print, I fill this richedit component with coloured text.
(like in the Delphi IDE, where the source is coloured)
The text can be up to 30 pages. But the problem occurs also,
if the text is 2 pages long.

If I print to "screen", everything is perfect. The preview is fine and
if
I then print the report, the text is ok.
But, if I print directly to "printer", the last 9 lines are without
colour.

Any suggestions ?


Thanks in advance


Thomas

____________________________________

GRID-DATA GmbH
Industriehof Trecknase 10
42897 REMSCHEID
GERMANY

mail : thomas.reppel@grid-data.com
phone : +49 2191 4701-0
fax : +49 2191 4701-26

please visit : www.grid-data.com

Comments

  • edited June 2001
    Make sure you have the latest printer driver installed.

    The last 9 lines of every page don't print with color, or just the end of
    the rich text? RB relies on Delphi's TRichEdit.

    What version of RB and Delphi are you using?

    You could send a report template with just a TppRichText and some richtext
    in it to support@digital-metaphors.com and we can test it here.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited June 2001
    Hi Jim,

    thanks for your answer.


    It is.
    If I first watch the preview on the screen and then print, it is fine.
    If I print directly to the printer it is wrong. So, I do not believe, that
    this
    is a printer driver problem.



    The end of the richt text.


    RB 5.53 and Delphi 5.


    This is a little bit difficult, because the colour is only added at runtime.
    But I try to
    send you the (running) "ripple" of the program.


    Thanks

    Thomas



    "Jim Bennett (Digital Metaphors)" schrieb:


    --
    ____________________________________

    GRID-DATA GmbH
    Industriehof Trecknase 10
    42897 REMSCHEID
    GERMANY

    mail : thomas.reppel@grid-data.com
    phone : +49 2191 4701-0
    fax : +49 2191 4701-26

    please visit : www.grid-data.com
  • edited June 2001
    You're using the OnPrint event of the TppRichText to assign the color,
    correct? Do you have a twopass report? Can you check the SelLength
    property to see if there is any variation in the length of the selected
    text, from the preview to printing directly to the printer, or between
    passes?


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.