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

Retreving changed Textfile after printing

edited April 2013 in General
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.

Comments

  • edited April 2013
    Hi Dirk,

    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;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.