in reply to Force Download to a .xls file
I use the following incantation, with success:
print $cgi->header( '-type' => "application/octet-stream; name=$file", '-Content-Disposition' => "attachment; filename=$file", '-Content-Transfer-Encoding' => "binary");
Note that $file is the basename, with no path - maybe that's all that's messing you up. In your case, it should just be "$xlsfile" I think.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Force Download to a .xls file
by existem (Sexton) on Feb 16, 2005 at 12:39 UTC |
In Section
Seekers of Perl Wisdom