The format produced by Spreadsheet::WriteExcel is the one used by older versions of Excel. As you've found, it has the limitations of the older version of Excel. Therefore you need to use a newer format.

The simplest option is csv. If this will not work (formatting is the usual reason why it won't) then you can step things up by creating an HTML file with a single table. Excel will load this without difficulty and you can do some formatting, but you will not have access to more advanced features of Excel. If you want that, Excel now saves files internally as XML in a zipped file. Nothing in principle stops you from creating the same exact XML.

If you wish to go this direction I would advise creating an Excel spreadsheet that looks like what you want it to look like and has all of the features you want. Unzip it. Then open it up and see if you can find where the stuff that is important for the data is. Then dynamically write that part, leave alone anything you can, and zip it up again. Then pray and try opening your file in Excel.

If you're really brave you could go to http://technet.microsoft.com/en-us/library/cc179190.aspx and try to figure out the format from the documentation that Microsoft provides.


In reply to Re: Need to generate excel having more than 70,000 records by tilly
in thread Need to generate excel having more than 70,000 records by gube

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.