We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Creating native excel reports from perl

ambuli
ambuli asked
on
Medium Priority
397 Views
Last Modified: 2012-05-11
Hi Experts,

I want to create a excel report as given in this example.
http://lena.franken.de/perl_hier/excel.html
But, I do not have the libs they are using.

use Date::Calc;
use Spreadsheet::WriteExcel;
use Spreadsheet::WriteExcel::Utility;


Where can I download these?  or is there any other better way to do excel report from perl?
Comment
Watch Question

CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT

Commented:
...apart from writing it as an HTML table, and giving the filename a .xls extension.  If you want more info on this, let me know.

Author

Commented:
Thank you.  Let me know how to create HTML, if it is simple.  Thanks.
CERTIFIED EXPERT

Commented:
Hi ambuli,

Write a file which contains this kind of thing:
<table>
        <tr>
                <td colspan="2" align="center">Spanned Heading</td>
        </tr>
        <tr>
                <td width="30%"><b>Data 1</b></td>
                <td><font color="red">Data 2</font></td>
        </tr>
</table>

Open in new window

And make the extension of the file .xls
When you open the file, it should open in Excel.  Works for me.

However, I doubt you can do fancy stuff like formulas, but it might be OK for reports.

Author

Commented:
Thanks tel2.  
CERTIFIED EXPERT

Commented:
A pleasure doing business, ambuli...again.

You're busy today.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.