I much prefer c++ to scripting languages like perl/python.
I have to do some bioinformatics work as part of my biomedical phd training in graduate school (lab research). In order to deal with the data, I would like to be able to take several ascii text files, parse their contents and output a spreadsheet file organized as a multi-sheet workbook.
The idea here is to automate the process, and thus CSV as an intermediate is not a desirable option. I am trying to avoid needing to import anything from within the spreadsheet program, but to have my program produce the finished product ready for analysis. I have already implemented a working program that is currently utilizing the free version of libxl
http://www.libxl.com/.
However, I am fairly poor (being a grad student), and I can't really afford to buy the library (not to mention all three, since I develop on Mac, Linux, and windows interchangably). The free version does some weird things to the output workbooks, (it inserts a request to purchase the full version as a merged-cells top row, overwriting any cells present there & randomly replaces cells with the text "buy me!". Does anybody know of a cheaper library or even open source library that can do similar things in an object oriented fashion? I don't even care if it uses excel format. I am open to producing ods files (ods: calc spreadsheets from openoffice.)
I realize that the ODS file format description is public domain and available, but I'm trying to write a fairly simple program, and I really don't want to have to implement all the backend file-type handling for something so trivial.
If such a libary doesn't yet exist, I'm thinking of designing a sort of modified ascii format to represent the spreadsheet so I can combine the source data files and separate the sheets and then writing a converter in perl, using the excel perl modules, to convert it to the desired format. This introduces an extra step though, and it would be best if I could avoid doing this.
For those with TLDR syndrome or lost track of the question::
The short and sweet: I'm looking for a library that enables the production of a spreadsheet format output file (either using source files with implementation in them or headers that link to static or dynamic libaries, I have no preference). I have no specific preference for excel and I am completely ok with using open document formats.
I have found ways of doing this in java, and I am aware of at least one way to do this in perl, but I have had no luck in finding a free/cheap library to do this in c++. It is entirely possible that I'm just stupid and don't know where to look.