in reply to Prompt to save file working with excel::writer::xlsx for desktop application

I am creating xlsx file using excel::writer::xlsx. I have filename defined, in Perl tk application, I want, when user click on button, it should ask for save i.e user should save where he or she wants. Thanks.

  • Comment on Re: Prompt to save file working with excel::writer::xlsx for desktop application

Replies are listed 'Best First'.
Re^2: Prompt to save file using Tk
by hippo (Archbishop) on Dec 17, 2018 at 11:19 UTC

    This does not sound specific to Excel::Writer::XLSX in any way. Did you try Tk::FileSelect? If this does not meet your requirements, please specify in what way.

      while using excel::write::xlsx, we provide constructor filename with path , and file gets generated in the given path. Let's say I have file name, cgi_dec.xlsx,my requirement is, to get the xlsx object and give user save option with the filename populated, where user can choose the directory to save it, after button clicked, file should get created in the user provided directory. I hope this helps to understand the issue. Thanks.

        I think you should have at look at this option while using the getSaveFile() function of that module

      It seems, I need to somehow manage with Tk::FileSelect. Thanks for the suggestion.