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

Double spacing in a TppRichEdit

edited February 2004 in General
As far as I can tell RTF does not support adjusting the line spacing.
I'm trying to build a form with some double spaced content and am
looking to see if anyone has a good way of accomplishing this task.

Thanks.
Steve

Comments

  • edited February 2004
    Hi Steve,

    In my testing, double spacing seemed to work correctly in the TppRichText
    component. There is however no way to set the inside the richtext editor
    but if you load your richtext from a file or blob field, the double spacing
    will be brought over as well.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2004
    Nico Cizik (Digital Metaphors) wrote:


    I can't seem to get this to work. I found some components that will
    allow me to apply line spacing but once I load them back into the
    TppRichText it's back to single spaced. All of the other formating seems
    to stick.

    Here's the specifics:

    1. Build and format text in TppRichText
    2. Save to memorystream
    3. Load from memory stream into TRichViewEdit (www.trichview.com)
    4. Apply desired line spacing (for testing I cranked it up to quintuple
    spacing (5x)
    5. to test I then display the results on the screen in a TRichViewedit
    window, looks good.
    6. To further test I save the RTF back to a memory stream and then
    display that in a standard delphi TRichEdit, still looks good.
    7. Last thing I do is return the memory stream and reload it back into
    the tppRichText. Print the report and while the font formating is
    consistant with the tRichViewEdit, however, the line spacing is back to
    single.

    Any ideas?
  • edited March 2004
    Steve Reeves wrote:



    UPDATE: I loaded a MS Word generated RTF file that was quint-spaced and
    it worked fine. So it looks like it may be a diff. in the way TRichView
    encodes the line spacing...
This discussion has been closed.