Submitted by Anonymous (not verified) on Thu, 08/25/2016 - 13:05


In the IceBreak Programming guide on P19 the file “MyApp.aspx.XLS” is downloaded. Is it possible to change the IceBreak program so that there is no double suffix and the file downloaded is called “MyApp.xls”?



Niels Liisberg

Thu, 08/25/2016 - 13:10

Hi Jonathan,

It is easy; you just need to set a header in you application to controle the download filename:

setHeader ('Content-Disposition' : 'attachment; filename="mynameforthesheet.xls"');

This will force the download process of the browser and not show it inline – AND the name of the file will be what ever you set in filename parameter.

Best regards,

Niels Liisberg