API to read/write XLS files

D

David Thielen

Hi;

Is there an API to read/write XLS files? I need a way to do this that does
not require Excel to be installed. (Requiring .NET 2.0 is fine.)
 
P

Peter Huang [MSFT]

Hi

There is no such API to handle XLS file(read/write) without Excel.
Because XLS file format is not public, we only expose the Excel Object
Modal to parse the XLS file which need the Excel application.

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
B

- B@rney

But the Excel XML file format is public. So if you can have a constraint on
working only with Excel 2003 you can read/write the files as XML in a .NET
application working in the XML DOM.

HTH
 
S

sam

Microsoft has no API to read/write .xls files, for various good reason.
However, other people do.

Here's a variety of open source projects, off the top of my head (google the
names for more details):
Spreadsheet::parseExcel and Spreadsheet::WriteExcel
pyXLReader / pyXLWriter
Ole::Storage and Herbert
JExcelApi

There are also ports and wrappers for various other scripting languages, if
you prefer ruby or php to perl, python, or Java.

Another possibility is to grab and reuse the conversion code from one of the
open source spreadsheets (Gnumeric, OpenOffice, Siag, etc.)--but this will be
more complicated.

Go to freshmeat.net and search for "Excel" and I'll bet you find dozens of
other options.

If you really want a COM object to drop directly into a VB.NET app, the only
choices I know of are commercial projects, such as Stellent Outside In (not a
recommendation, just the first one that comes to mind).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top