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

Printing Memo or Rich Text to text file

edited January 2007 in Devices
Hi
How can I print to file report that contains memo and rich text fields?
Jeka

Comments

  • edited January 2007

    There are two plain text output formats in RB.

    - TextFile

    This is a delimited text format. Use the File | PageSetup dialog of the
    report designer to configure which components to export. Memo and RichText
    are not supported. Therefore you need to use a Label or Variable that has
    its Visible property set to False except when printing to file. When
    exporting to file, set the label caption or the variable value to contain
    the value of Memo.Text or RichText.PlainText.

    Use the Report.BeforePrint event to check whether Report.FileDevice <> nil,
    to determine whether a report is being exported to a file.

    - ReportTextFile

    This is a text version of the report layout. Memo are supported. RichText
    memos are not supported. Run RBuilder\Demos\Reports\Demo.dpr and check out
    demo 107.




    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

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