On 2/6/11 10:45 PM, Octavian Rasnita wrote:

>> Is there some other means of creating an Excel file using perl?
>>
>> thanks
> 
> 
> 
> Create a real Excel file using Spreadsheet::WriteExcel.

Thanks, this worked fine.

I did make the rookie mistake of copying an example off the web without
fully understanding the module's syntax. The code created a spreadsheet
as expected, but the resulting file wouldn't attach to email using
MIME::Lite or MIME::Lite::TT:HTML.

Problem was I'd forgotten to close the workbook:

$workbook->close();

I found several instances of people asking why they could see the
spreadsheet on disk but couldn't email it; that's why. Of course close()
is well documented in this module's perldoc page.

Thanks again!

dn




-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to