Export

When selecting export on print the file path is not remembered. This is the new version. Was OK in v19.

This is rather annoying.

Dave Craggs

Comments

  • Hi Dave,

    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.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Check out here:



    Dave Craggs
  • Hi Dave,

    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?
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • This is the previous behaviour

  • Hi Dave,

    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.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • The code is setting TextFileName

    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.
  • Hi Dave,
    The code is setting TextFileName
    You did not mention this in your first post :).

    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.


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • I didn't actually know until I looked :-)

    Not my original code :-)
Sign In or Register to comment.