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

Print to TextFile

edited July 2003 in General
I've created a report that is basically a form letter.

From the database fields it creates the letter.

And I can view and print the letter.

However, when I try to print it to a text file, all I get is a blank page.

I tried to print to a textfile programatically and also using the
printdialog and still get a blank page.

What am I doing wrong?

(As a side note, I have TExtraDevices, and I can Print the file to an RTF
and I get the letter. However there a hard carriage returns at the end of
each line in the text body, and I am trying to resolve this. I just wanted
to see if printing to a TextFile will rectify the carriage return problem.)

Bill Gage

System Info
Delphi 5 Enterprise
Report Builder 6.03

Comments

  • edited July 2003
    Hi Bill,

    You need to set the 'Save' property for each text component in your report
    for it to show up in your text file. The easiest way to do this is to use
    the "Print to File Setup" dialog. Access this in the File menu of the
    Designer. The 'Save" property is also a published property of all text
    components in ReportBuilder.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    Unfortunately DBMemo fields do not print to text files.
  • edited July 2003
    Hi Bill,

    Sorry, it is not possible to print a DBMemo field to a text file in
    ReportBuilder. You will need to use DBText fields instead with the "wrap
    text" property set to true.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.