X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcustomer_accounting_summary.html;h=744b313f9c07784548b0d875bcc9ac75f95866ef;hb=adcf4e1d0e02f9e91513bdccd4a8d811f052a7f6;hp=5ce2e3a8f02b9d3d1fbebbef4a8d518c15e98890;hpb=044e4ea5533f1c14697b7ad408dc0cf0e0327abb;p=freeside.git diff --git a/httemplate/search/customer_accounting_summary.html b/httemplate/search/customer_accounting_summary.html index 5ce2e3a8f..744b313f9 100644 --- a/httemplate/search/customer_accounting_summary.html +++ b/httemplate/search/customer_accounting_summary.html @@ -9,8 +9,7 @@ http_header('Content-Disposition' => qq!attachment;filename="$filename"!); my $output = ''; - use IO::String; - my $XLS = IO::String->new($output);; + my $XLS = IO::String->new($output); my $workbook = $format->{class}->new($XLS) or die "Error opening .xls file: $!"; @@ -73,9 +72,11 @@ $r++; } #$row $workbook->close; + + http_header('Content-Length' => length($output)); + $m->print($output); -<% $output %> -% } else { +% } else { <& /elements/header.html, $title &> % my $myself = $cgi->self_url;

@@ -86,7 +87,7 @@ as ">Excel spreadsheet