I wrote a library myself in C++ when i was in the 2nd year of computer science at the university of Antwerp. It's capable of writing strings and simple formulas such as +, *, -, /, SIN, COS, ... To a Microsoft Excel 2.1 Worksheet. Usage: Xls xls(filename); xls.setLabel(rowNr, colNr, text); // int, int, std::string xls.setFormula(rowNr, colNr, formulaInStringForm); // int, int, std::string The formula strings are in a somewhat special format. E.g: SUM(1,2,3,4) will result in the excel sheet as: 1 + 2 + 3 + 4 SUB(1,2,3,4) ... 1 - 2 - 3 - 4 MUL(1,2,3,4) ... 1 * 2 * 3 * 4 DIV(1,2,3,4) ... 1 / 2 / 3 / 4 SIN, COS, TAN, ATAN, ACOS, ASIN are 1 argument formulas, so SIN(2) will result in: SIN(2) It's not C, but I hope it helps. Benny -----Original Message----- From: gtk-app-devel-list-admin gnome org [mailto:gtk-app-devel-list-admin gnome org] On Behalf Of danilo lujambio Sent: woensdag 27 augustus 2003 11:07 To: gtk-app-devel-list gnome org Subject: excel Hi, I need to express some results of my app in xls file format. I found a perl module and a php module which could help me, but anybody know a C library to make this task ? Thanks ! dl _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Attachment:
toXls.h
Description: Binary data
Attachment:
toXls.cxx
Description: Binary data