Print to TextFile
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com