Hello to all the Perl Monks out there!
I wish to parse information from an excel file and print it out in a HTML table to be displayed for my users.
As of now I'm using Spreadsheet::ParseExcel
I'm not sure if its just my skill level or the module. I'm also not sure if there any other modules better capable of doing what I need to do then this.
Basically, the script I have now parses the info. pretty well. However, I would like the printed results to contain the same exact formatting Excel has. For example, if you save the excel file as a .html file, the HTML file it generates replicates the excel format pretty darn well (same font, same margin widths, same table widths, same text color, same font weight , etc.).
My script now does not replicate it well. Althought it parses the right text and data, the formatting is way off. The alignment of certain columns dont fit, the font-weight and text are different which leaves me with a ugly looking table in HTML.
Does anyone know a better Excel module for what I need? Or should I stick with this module and see if I can get the format right? I tried for the last 2-3 hours and I have given up hope. So now I seek wisdom from this board. Thanks for taking your time to read this post.
Cheers,
Larry
2006-10-07 Retitled by g0n, as per Monastery guidelines
Original title: 'Parsine Excel Files while maintaining format'
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.