[freeside-commits] freeside/httemplate/search/elements search-xls.html, 1.2, 1.3
Mark Wells
mark at wavetail.420.am
Sun Dec 13 19:36:36 PST 2009
Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail.420.am:/tmp/cvs-serv18516/elements
Modified Files:
search-xls.html
Log Message:
Fix filename for Excel spreadsheet reports
Index: search-xls.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/search-xls.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- search-xls.html 4 May 2009 00:22:44 -0000 1.2
+++ search-xls.html 14 Dec 2009 03:36:34 -0000 1.3
@@ -13,7 +13,9 @@
#http://support.microsoft.com/kb/199841
http_header('Content-Type' => 'application/vnd.ms-excel' );
-
+http_header('Content-Disposition' =>
+ 'attachment;filename="'.($opt{'name'} || PL($opt{'name_singular'}) ).'.xls"');
+
#http://support.microsoft.com/kb/812935
#http://support.microsoft.com/kb/323308
$HTML::Mason::Commands::r->headers_out->{'Cache-control'} = 'max-age=0';
@@ -79,5 +81,5 @@
$workbook->close();# or die "Error creating .xls file: $!";
http_header('Content-Length' => length($data) );
-
+
</%init>
More information about the freeside-commits
mailing list