Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Download file ? how to..
#4
Hi Jose,

Sorry for the previous reply. I know now what to do and have solved my problem / request.

Using TZipFile is the answer to putting files together in one zipfile.

WebApplication.Sendfile is indeed the answer to not only download the file, but also to have the application ask the user what to do with the file.

Just what I needed.

So solution is simple and in less than 10 lines of code, I have created a zipfile, added files to it, closed it, SendFile to activate a download the user can respond to, and freed it after. Only problem I had was, like when exporting gridlines to excel, to remember to release the lock set by the Button OnClick event I use to activate the zipping and sending, to have the application not waiting for Windows to finish (or whatever it is keeping the lock on my application).

If anybody want to see how I did it, just let med know and I'll post the source code. It's Delphi 10.3 and IW 15.1.12.

Regards
Soren
Reply


Messages In This Thread
Download file ? how to.. - by SorenJensen - 02-29-2020, 11:24 AM
RE: Download file ? how to.. - by SorenJensen - 02-29-2020, 04:52 PM
RE: Download file ? how to.. - by SorenJensen - 03-01-2020, 12:59 PM
RE: Download file ? how to.. - by SorenJensen - 03-01-2020, 04:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)