Print to file
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;
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;
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com