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

Print to file

edited October 2002 in General
Hello,

I tried to print an report to file, but it always is showing to screen. I
also set the save properties from my band detail and all the components from
band detail to true.
How can I do ?

erRelatorio: tppReport;
...


with erRelatorio do
begin
DeviceType := dtTextFile;
TextFileName := 'c:\temp\teste_builder.txt';
TextFileType := ftTab;
AllowPrintToFile := True;
Print;
end;

Comments

  • edited October 2002
    What version of RB are you running? That should work. I just tried it in a
    simple example and it works. Try it without the with statement. If that
    doesn't work, then try it by dropping a new report on a form and configure
    the properties at delphi design time and print that report. It should print
    the report to the file when you set the device type to text file and call
    the print method. If that doesn't work, thensend us an example that shows
    the problem: support@digital-metaphors.com


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.