in reply to XML to Excel with Stylesheet
sub print_html_header { my $self = shift; if ($self->style eq "excel") { my $filename = $self->new_excel_filename; $self->{r}->header_out('Content-Disposition'=>"attachm +ent; filename=$filename") } my $content_type = ($self->style eq 'excel') ? 'application/vn +d.ms-excel' : 'text/html'; $self->{r}->send_http_header($content_type); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML to Excel with Stylesheet
by rashley (Scribe) on Feb 06, 2007 at 19:19 UTC |