Forum OpenACS Development: Re: html table to excel
It displays on the screen very nicely, just doesn't pop up in Excel.
set csv [list::write_output -name pan]
set outputheaders [ns_conn outputheaders]
ns_set cput $outputheaders "Content-Disposition" "attachment; filename=pan.csv"
doc_return 200 "application/text" "$csv"
Have you tried changing your MIME type to something different? Maybe "Application/vnd.ms-excel"? You'll have to send the type that your browser has configured to pop the Excel application.