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

Exporting RichText to 'Report Emulation Text File'

edited January 2005 in Devices
Hi,

I'm having trouble exporting a report to a file ('Report Emulation...') All
the information get exported except any TppRichText components...

Is this something already fixed on new version of RB? Is there any work
around (other than using TMemo)?


Delphi 5
Report Builder 6.02
TExtraDevice 2.x

thanks,
Luis

Comments

  • edited January 2005

    RichText is not supported by the export to report emulation text file.

    The only workaround would be to use a memo. In the Report.BeforePrint you
    can detect whether the report is printing to file and then set the memo to
    visible or not visible.

    if Report.FileDevice <> nil then
    memo.Visible := True
    else
    memo.Visible := False;






    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited January 2005
    Unfortucantelly the Memo prints all the RTF format... I tried also to create
    a TRichEdit componentand, assign the data, and retreive the text... however
    for some reason the TRishEdit component need to have a parent component and
    can't be created on the fly...

    Luis


  • edited January 2005

    Try using TppRichText.PlainText


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.