Just another Perl shrine | |
PerlMonks |
Unable to retain the format in copying from one excel file to anotherby nemadepsn (Initiate) |
on Jun 11, 2019 at 14:30 UTC ( [id://11101251]=perlquestion: print w/replies, xml ) | Need Help?? |
nemadepsn has asked for the wisdom of the Perl Monks concerning the following question: I want to copy content from one excel file to another retaining the format too. Here by format I mean fill color, border, bold, italic, etc. I have written a code for this where I extract the value and format number from one excel file and simply write in the other excel sheet. I have referred the following link for that. https://metacpan.org/pod/Spreadsheet::ParseExcel::SaveParser The problem is that it is not retaining the format. I think the problem is that the format number is not universal which means that a format number means two different things in two different excel files. When I run this code I get the error Use of uninitialized value in hash element at /pkg/qct/software/perl/5.18.0_test/lib/site_perl/5.18.0/Spreadsheet/ParseExcel.pm line 2383. According to me, it means that the extracted format number doesn't mean anything to other file. Please let me know solution to this problem Basically what my problem is that I have modified two xls file using Spreadsheet::ParseExcel::SaveParser and I want to merge those two xls files using Perl. Please suggest a way of merging two xls files using Perl in any other way such that formatting is retained. Please suggest non-Perl way too using some other coding language. This question has been cross-posted on stackoverflow : https://stackoverflow.com/questions/56545694/unable-to-retain-the-format-in-copying-from-one-excel-file-to-another
Back to
Seekers of Perl Wisdom
|
|