I have a report which gives a list of files after providing necessary info through filtering parameters like: name, document type, when created or modified etc. The list will give us file IDs and other fields.The basic query is:
select IQID, NAME from TABLE_FILES where...
(list of conditions from parameters)
How can I download any of the file after clicking on some button/image/link? Here is my visualization:
After clicking on download icon, it would call Custom VB Code somehow. In that custom code I would use below query to get the BLOB (file) based on the File ID from the first column:
SELECT BLOB
FROM TABLE_FILES
WHERE IQID = ReportItems.txt_IQID.Value
Also, among the parameters I would give to the user one parameter option where they would have to state download location. This download location would be also passed somehow to the custom code.
I am not even sure if that's possible in SSRS. Also, I don't know how to trigger Download Custom Code after clicking on some object (like picture or link).