Re: Writing to Spreadsheets in PERL...
by JavaFan (Canon) on May 10, 2010 at 14:17 UTC
|
From the Spreadsheet::WriteExcel manual page:
The following limits are imposed by Excel:
Description Limit
----------------------------------- ------
Maximum number of chars in a string 32767
Maximum number of columns 256
Maximum number of rows 65536
Maximum chars in a sheet name 31
Maximum chars in a header/footer 254
So, if you want more than 32767 characters in a cell, Excel isn't the appropriate format. | [reply] |
|
|
Thanks for the immediate reply... One of my friends was suggesting that i should write into XLSX files instead of XLS files to overcome this issue. Would you know anything about this? Would XLSX help me resolve this issue? How do I write into XLSX files from PERL?
| [reply] |
|
|
| [reply] |
|
|
| [reply] |
|
|
| [reply] |
|
|
|
|
No idea. All I know is that Spreadsheet::{Read|Write}Excel doesn't do XLSX files. I always send them back if $WORK gives me one.
| [reply] |
|
|
| [reply] |
Re: Writing to Spreadsheets in PERL...
by Corion (Patriarch) on May 10, 2010 at 14:21 UTC
|
If you're reaching the limits of Excel, maybe what you want to use instead is a database? are you sure that storing that much data per cell makes sense? Nobody will ever look at a cell that has more than 32000 characters in it.
| [reply] |
Re: Writing to Spreadsheets in PERL...
by CountZero (Bishop) on May 10, 2010 at 16:05 UTC
|
Directly from Microsoft on Excel 2007:Characters in a cell that can be displayed and printed: Increased to 32,000. There is still a hard limit of 32,767 characters per cell of which you can see only 32,000 characters! So even using the new file format will not help you. And it does not improve in Excel 2010: The official blog of the Microsoft Excel product team: Some other numbers .... Fortunately some other limits were increased: rejoice all because your Excel 2010 workbook can now contain 4.3 billion unique colors!
CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
| [reply] |
Re: Writing to Spreadsheets in PERL...
by sierpinski (Chaplain) on May 10, 2010 at 14:24 UTC
|
I'm surprised nobody yet has mentioned the OP's reference to PERL.
On a lighter note, I agree with Corion. If you need to store a lot of data, a database is what you should be using. Having a cell with more than 30,000 characters is just screaming for problems. | [reply] |