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

TextFileName in PrintDialog

edited March 2004 in General
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

Comments

  • edited March 2004
    Sorry, it's ok i found it in :

    ppReport1.PrintDialog.TextFileName


    "ZigZag" a ?crit dans le message de
This discussion has been closed.