I am unclear about how to recreate this issue. In my testing with RB 20 and RB 19, if I export a report to file (with an altered file name from the default), it is reset each time I export again.
Please provide detailed steps to recreate the behavior you are referring to and I'll test again with RB 20 and RB 19.
Thanks for the video. In my testing with RB 19 (and looking at the RB 19 code), the exact same behavior occurs. Are you certain you are not saving the TextFileName in code and re-assigning it manually?
For RB 20, you need to use the Report.ExportDialog when setting the TextFileName of the dialog. We are gradually adding backward compatibility features for this and I will add this to the list for the next release.
Comments
I am unclear about how to recreate this issue. In my testing with RB 20 and RB 19, if I export a report to file (with an altered file name from the default), it is reset each time I export again.
Please provide detailed steps to recreate the behavior you are referring to and I'll test again with RB 20 and RB 19.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Dave Craggs
Thanks for the video. In my testing with RB 19 (and looking at the RB 19 code), the exact same behavior occurs. Are you certain you are not saving the TextFileName in code and re-assigning it manually?
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
The first video has the file name without a path present so the Report.TextFileName is "ItemDetails.pdf".
In your second video, the file path is already present so the Report.TextFileName is "C:\Users\dcraggs\Documents\ItemDetails.xls".
In both videos, it appears the Print Dialog is using the Report.TextFileName as the initial file location, and thus using it in subsequent prints.
Please check your code to see if you are using "PrintDialog.TextFileName" anywhere to manually save and/or load the file name or path to the dialog.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
TppPrintDialog(FReport.PrintDialog).TextFilename := AFileDirectory + ReportTitle;
It is being set to C:\Users\dcraggs\Documents\Item Details
But only the 'Item Details' part is appearing in the Where field on the export form.
For RB 20, you need to use the Report.ExportDialog when setting the TextFileName of the dialog. We are gradually adding backward compatibility features for this and I will add this to the list for the next release.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Not my original code :-)