[cgiapp] Output an excel file

Michael Peters mpeters at plusthree.com
Fri Aug 28 17:45:09 EDT 2009


Michael Peters wrote:

> And then remember to close your workbook when it's done.

Also remember to send the right content type and other headers:

   $self->header_add('-type' => 'application/vnd.ms-excel');

And if you're not going with CAP::Stream, then also mime-type, content-length, 
and content-disposition/attachment. But really CAP::Stream makes this whole 
thing so much easier. And you can probably do the cleanup in your teardown method.

-- 
Michael Peters
Plus Three, LP



More information about the cgiapp mailing list