in reply to Re^5: Append new line in excel sheets
in thread Append new line in excel sheets
Hi CountZero, Sorry I didn't respond your query. Here is my actual problem: I'm converting Excel(.xls, .xlsx) files to .csv files. Since a single file contains around 10k lines so on calling parse in the below code:
my $parser = Spreadsheet::ParseExcel->new(); my $Book = $parser->parse($in_file);
memory out of bound error comes on command prompt, but I figured out to resolve this using cell_handler. But for few excel files cell handler skips the last row of the excel files which contain tables. After doing some R&D I found out that after adding a row in the end of file resolves the problem. In order to make it work I have to append a new row in the end. I don't want to use OLE as on our production system MS Office will not be installed. So kindly suggest me something. In response of your question: Yes the program fails, It throws memory out of bound on command prompt. And when I monitor the memory usage it hits 1GB mark for this size. The version of Excel files I'm working on is Microsoft Office Standard 2010. They might be of older version also as we get these excel files from some other resources which can not be controlled by us. In case I missed to mention something kindly point out. I will be very thanks... I'm so stuck here.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Append new line in excel sheets
by roboticus (Chancellor) on Jul 23, 2014 at 11:49 UTC | |
by perl_new_b (Novice) on Jul 23, 2014 at 12:49 UTC | |
by roboticus (Chancellor) on Jul 23, 2014 at 17:09 UTC | |
by perl_new_b (Novice) on Jul 24, 2014 at 05:22 UTC | |
by roboticus (Chancellor) on Aug 02, 2014 at 14:49 UTC | |
by perl_new_b (Novice) on Jul 24, 2014 at 05:28 UTC | |
| |
by perl_new_b (Novice) on Jul 23, 2014 at 13:14 UTC | |
|
Re^7: Append new line in excel sheets
by CountZero (Bishop) on Jul 15, 2014 at 16:52 UTC | |
by perl_new_b (Novice) on Jul 21, 2014 at 11:41 UTC | |
by perl_new_b (Novice) on Jul 21, 2014 at 13:19 UTC | |
by CountZero (Bishop) on Jul 23, 2014 at 07:17 UTC |