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
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|