You can also create an html representations of an Excel document that excel can load. The advantage of this approach over the Text:CSV format is that you get more control over the appearance of the spreadsheet. Column width, Fonts are controlable. You can also do formulas. The reason for doing this is to create Excel output from another program that is not excel. Try this: 1. Create using Excel a simple version of the spreadsheet you want to produce. SaveAs 'html' if you open it with notepad you will see a text format that can be produced by a program. 2. Rename the file with an xls extention. When you open it Excel opens it just as if it were an excel file. 3. Create your file using the format you saw in step #1 substitute your own values. Problems: If you have data in more than one worksheet in your excel file the SaveAs 'html' produces a file, a folder with a bunch of other files. This makes things much more complicated. In my case I am trying to make email attachements the multi file version of this is not good. Conclusion: If you are creating something with just one worksheet or have a more robust way of distributing your result the html format works well.

In reply to Re: Re: Excel - usable format by Anonymous Monk
in thread Excel - usable format by novas007

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.