Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

non-OLE reading and writing Excel/OpenOffice comments?

by woland99 (Beadle)
on Jun 10, 2014 at 21:26 UTC ( [id://1089455]=perlquestion: print w/replies, xml ) Need Help??

woland99 has asked for the wisdom of the Perl Monks concerning the following question:

Hi - I wonder if there is a way to read/write comments from/to Excel or OpenOffice without using Win32::OLE?
  • Comment on non-OLE reading and writing Excel/OpenOffice comments?

Replies are listed 'Best First'.
Re: non-OLE reading and writing Excel/OpenOffice comments?
by igelkott (Priest) on Jun 11, 2014 at 05:20 UTC

    Yes. To write comments, you could use write_comment() from Spreadsheet::WriteExcel or Spreadsheet::WriteExcelXML as appropriate for the file type (assuming the usual xls or xlsx).

    Read the docs for details. With these, you should be able to find modules/functions to read comments as well. Of course, other modules may be better suited for your task but these should get you started.

      Thanks a lot - I overlooked that part.
Re: non-OLE reading and writing Excel/OpenOffice comments?
by Anonymous Monk on Jun 10, 2014 at 22:14 UTC

    Hi - I wonder if there is a way to read/write comments from/to Excel or OpenOffice without using Win32::OLE?

    Theoretically :) yes :) Pratically :) Maybe :) Depends on what spreadsheet excel modules support

      Well - I have bunch (50+) of large XLS files (Excel 2003) that are used as data for our software project - and developers are allowed to maintain them by hand and insert commands.

      I wrote some Perl tools to do various automated data verification and population. But for that I need to be able to preserve comments in data files

      Since part of the team moved to OpenOffice (but using XLS format) ideally I am looking for solution that would not use OLE - just for simplicity. I know how to do it (read/write comments) in OLE - at least for Excel APIs.

        Um , ok, and then what happened?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1089455]
Approved by LanX
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-18 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found