in reply to How to open existing Worksheet(xls) in Perl

Read the file using Spreadsheet::ParseExcel, write the updated file using Spreadsheet::WriteExcel. See Modifying and rewriting Excel files.

Update: Fixed typo thanks Tux.

  • Comment on Re: How to open existing Worksheet(xls) in Perl

Replies are listed 'Best First'.
Re^2: How to open existing Worksheet(xls) in Perl
by Tux (Canon) on Nov 14, 2011 at 12:20 UTC

      Thanks for pointing out the typo (fixed) and for letting me know about Spreadsheet::Read.

Re^2: How to open existing Worksheet(xls) in Perl
by locked_user satishkambam (Initiate) on Nov 14, 2011 at 13:00 UTC
    Hi , By using this module we cannot get the proper output. graphs and some other features in the original Excel file will be lost Also, formulas aren't rewritten, only the result of a formula is written. can you help me on this ..

      The documentation states:

      "However, you can only rewrite the features that Spreadsheet::WriteExcel supports so macros, graphs and some other features in the original Excel file will be lost. Also, formulas aren't rewritten, only the result of a formula is written."

      And later:

      "If there is some feature of an Excel file that you really, really need then you should use Win32::OLE with Excel on Windows. If you are on Unix you could consider connecting to a Windows server via Docserver or SOAP, see Writing Excel Files."