Retreving changed Textfile after printing
Hello,
Is it possible to get the filename the user has entered in the printdialog
after the report is printed ?
Example:
I set textfilename = 'c:\myReport.xls' ,
In the print-to-file dialog, the user changed it to
'c:\reports\Report01.xls',
Now, i want to open this file in Excell, but the textfilename-property
is still 'c:\myReport.xls'
Is there a property that has the changed/used filename ?
kind regards,
Dirk Janssens.
Is it possible to get the filename the user has entered in the printdialog
after the report is printed ?
Example:
I set textfilename = 'c:\myReport.xls' ,
In the print-to-file dialog, the user changed it to
'c:\reports\Report01.xls',
Now, i want to open this file in Excell, but the textfilename-property
is still 'c:\myReport.xls'
Is there a property that has the changed/used filename ?
kind regards,
Dirk Janssens.
This discussion has been closed.
Comments
You can easily automatically open the file created by setting the
Report.XLSSettings.OpenXLSFile property to True. PDF and RTF have
similar options.
The file name can be retrieved from the print dialog itself once it has
closed. (Report.PrintDialogClose event).
FileName := Report.PrintDialog.TextFileName;
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com