Welcome Guest, Not a member yet? Register   Sign In
.xls suffix on controller function to make excel file?
#4

[eluser]Unknown[/eluser]
Thanks for the direction on setting the MIME type

I ended up using the PHP header() method like so

Code:
header('Content-type: application/vnd.ms-excel');

header('Content-Disposition: attachment; filename="report.xls"');

I don't have the .xls on the url but all I wanted was for the link to make an excel file out of the current document anyway.

Thanks for the help!


Messages In This Thread
.xls suffix on controller function to make excel file? - by El Forum - 04-29-2010, 04:08 PM
.xls suffix on controller function to make excel file? - by El Forum - 04-29-2010, 04:37 PM
.xls suffix on controller function to make excel file? - by El Forum - 04-30-2010, 06:21 AM
.xls suffix on controller function to make excel file? - by El Forum - 04-30-2010, 08:09 AM
.xls suffix on controller function to make excel file? - by El Forum - 04-30-2010, 11:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB