Libexcel is a static library which can write xls-files directly.
Supports aligns, borders, colors, fonts, images, formulas, hyperlinks etc.

http://libexcel.com