bennierounder has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys
I'm wondering how i can insert a word into the top of an excel file using perl without messing with the format. I want to add a row at the top of the file and insert a word in the first row first column keeping same format, having dramas.
I have created a new file with the word i want in 0,0 then i want the other document to copy itself under this word. basically I just want everything to be a row lower than it is in the same format and then insert a word into the first row first column for encryption purposes. Can anyone help?
if ($WE_NEED_TO_DO_ENCRYPTION) { if ($ext =~ /XLS/i) { # open a new excel file insert the word 'encryted' on the 1st ro +w, 1st column. my $workbook = Spreadsheet::WriteExcel->new($report_type . '_' +. $time . $ext); my $worksheet = $workbook->add_worksheet(); $worksheet->write(0, 0, 'encrypted'); # now copy report file into the new xsl file. # THIS IS WHERE I AM STUCK I NEED TO PUT THE REST OF ANOTHER FIL +E HERE IN THE SAME FORMAT
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using Spreadsheet:WriteExcel or whatever else I need
by RMGir (Prior) on Oct 26, 2011 at 11:44 UTC | |
by bennierounder (Sexton) on Oct 26, 2011 at 13:18 UTC | |
Re: Using Spreadsheet:WriteExcel or whatever else I need
by jmcnamara (Monsignor) on Oct 26, 2011 at 13:30 UTC | |
Re: Using Spreadsheet:WriteExcel or whatever else I need
by Lotus1 (Vicar) on Oct 26, 2011 at 16:02 UTC | |
Re: Using Spreadsheet:WriteExcel or whatever else I need
by stefbv (Curate) on Oct 26, 2011 at 17:21 UTC |
Back to
Seekers of Perl Wisdom