Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Need to generate excel having more than 70,000 records

by tilly (Archbishop)
on Apr 02, 2009 at 04:48 UTC ( [id://754857]=note: print w/replies, xml ) Need Help??


in reply to Need to generate excel having more than 70,000 records

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.

  • Comment on Re: Need to generate excel having more than 70,000 records

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://754857]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-19 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found