MikeGerard has asked for the wisdom of the Perl Monks concerning the following question:
I run a program on a server, where I want to send results to me (as an Excel file). My code somehow sent them to me via my downloads folder (don't ask me ow it did it!) This stopped working a while back, though my perl code has not changed. </p) <code> print $cgi->header(-type=>"application/vnd-ms-excel", -attachment=>"$attachment_name.xls"); print $cgi->start_html(-title=>"Exported Excel results"); <code/>
What I see on the data that I want to get starts with Content-Disposition: attachment; filename="17_1_25_September_25_September_2024_All Types_Geneva.xls" Content-Type: application/vnd.ms-excel; charset=ISO-8859-1 but nothing in my downloads folder!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Write to an excel file
by hippo (Archbishop) on Sep 25, 2024 at 17:11 UTC | |
|
Re: Write to an excel file
by bliako (Abbot) on Sep 26, 2024 at 09:38 UTC | |
by afoken (Chancellor) on Sep 26, 2024 at 21:13 UTC |