TextFileName in PrintDialog
Hi,
I have a problem. I do an export and in the PrintDialogScreen i change the
TextFileName. After print, I need to do
somethings on my export file but the TextFileName never change so i don't
know the name of the file.
Example
procedure TForm1.Button1Click(Sender: TObject);
begin
ppReport1.AllowPrintToFile := true;
ppReport1.ShowPrintDialog := true;
ppReport1.DeviceType := 'TextFile';
ppReport1.TextFileName := 'c:\myFile.txt';
ppReport1.print;
// I change the TextFileName in the screen PrintDialog with
c:\myNewFile.txt
showmessage(ppReport1.TextFileName); // -> return to me c:\myFile.txt
end;
why ???
Using :
D6 SP2
Report Builder 6.03
Best regards
ADN Informatique
I have a problem. I do an export and in the PrintDialogScreen i change the
TextFileName. After print, I need to do
somethings on my export file but the TextFileName never change so i don't
know the name of the file.
Example
procedure TForm1.Button1Click(Sender: TObject);
begin
ppReport1.AllowPrintToFile := true;
ppReport1.ShowPrintDialog := true;
ppReport1.DeviceType := 'TextFile';
ppReport1.TextFileName := 'c:\myFile.txt';
ppReport1.print;
// I change the TextFileName in the screen PrintDialog with
c:\myNewFile.txt
showmessage(ppReport1.TextFileName); // -> return to me c:\myFile.txt
end;
why ???
Using :
D6 SP2
Report Builder 6.03
Best regards
ADN Informatique
This discussion has been closed.
Comments
ppReport1.PrintDialog.TextFileName
"ZigZag" a ?crit dans le message de