3

How i can read\export data within a C++ application to Excel files? I was found the xlslib project, but it only compiles with MingW on Windows. My target platform is windows (MVS2008)

Lucas
  • 3,059
  • 5
  • 33
  • 48

3 Answers3

2

You can try this commercial library http://www.libxl.com, it works with Visual Studio 2008 and doesn't require Microsoft Excel.

1

If you're stuck with unmanaged C++ and need to communicate directly with Excel you'll need the COM automation interfaces. See the MSDN article link text

If you want the expressive power of the new managed interop, I think you may need to wrap your C++ code in an interop dll.

Mike Burrows
  • 236
  • 3
  • 7
0

On windows, you can also give a try to ExcelFormat lib. http://www.codeproject.com/Articles/42504/ExcelFormat-Library

It doesn't require Excel installed, and it's very easy to use.

fduff
  • 3,671
  • 2
  • 30
  • 39