in reply to Using Spreadsheet::WriteExcel with mod_perl and Content-Disposition?
I am going to offer you a few suggestions in hopes that it might help you out.
I assume you have a simple mod_perl request handler working, eh? If you do not make sure you can at least return "hello world" to your browser! :) After that you should only need to do:
Let me know how this goes. I've been meaning to do this myself! :) Thanks for prompting me to look into this.sub handler { my $r=shift; # generate your Spreadsheet binary and put it in, oh # $sheet, ok? $r->content_type('application/vnd.ms-excel'); $r->header_out('Content-disposition' => "attachment; filename=\"$fi +lename""); $r->send_http_header; $r->print($sheet); return DONE; }
J
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using Spreadsheet::WriteExcel with mod_perl and Content-Disposition?
by one4k4 (Hermit) on Mar 15, 2001 at 01:31 UTC | |
by jmcnamara (Monsignor) on Mar 15, 2001 at 05:19 UTC | |
by one4k4 (Hermit) on Mar 15, 2001 at 05:22 UTC | |
|
Re: Re: Using Spreadsheet::WriteExcel with mod_perl and Content-Disposition?
by one4k4 (Hermit) on Mar 15, 2001 at 01:44 UTC |