Install Microsoft Excel Driver (*.xls *.xlsx *.xlsm *.xlsb)

/ Comments off

The easiest way to convert a file from.xlsb file format to.xlsx is to open it in Excel and save the file in the other format. Note that the.xlsx file will lose any macros that were originally present in the.xlsb file. The.xlsx file format is a zip archive of a set of mini-files containing xml data.

Active6 years, 4 months ago

I want to write some data to an xlsx spreadshhet (ultimately into an existing one with multiple shhets, but for now would be happy with creating a blank single sheet file).

Looking around it seems I need to use the excel ODBC driver (Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)) to write data into the spread sheet.

However this fails with:'Driver not installed: Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)'

I have the 64bit version of Office 2010 Pro Plus (I think thats the version students get?) installed, on Windows 7 Home 64bit. And am trying to create a 32bit application.

Is there some fundamental issue using ODBC here with office and windows editions, or the bitness of the application? Is ODBC the best choice here for simply writing some data into a file?

A requirment is also that I can write any file, and excel doesnt need to be open (but excel 2007 or later will be installed on the system).

SyncViewsSyncViews

3 Answers

I would recommend you to use a CSV file (Comma Separated Values). That is very easily created and can be read by Excel (as well as OpenOffice's and iWork's products).

Max Z.Max Z.
4611 gold badge5 silver badges22 bronze badges

try http://www.libxl.com/ - not affiliated, not even a customer (since I use mostly C#)..

Install Microsoft Excel Driver (*.xls *.xlsx *.xlsm *.xlsb) Windows 10

EDIT - as per comment:

the above lib would allow you to not only create but also read+modify existing excel files as you hint as a future goal in your first sentence..

For creating Excel files there some free options:
You can create CSV or (if some formatting and/or grouping and/or formulas etc. needed) HTML - Excel can open HTML and use this just fine if you take care to use the tags it understands - see http://www.c-sharpcorner.com/UploadFile/kaushikborah28/79Nick08302007171404PM/79Nick.aspx

YahiaYahia
64k7 gold badges95 silver badges125 bronze badges
Install microsoft excel driver (*.xls *.xlsx *.xlsm *.xlsb) windows 7

There is another option. Nvidia geforce gt 630 driver.

ExcelFormat: A header file only C++ library that can write, read and format xls files. I know you asked for xlsx, but as Excel 2007 still can open these files it might be worth a try.

Install Microsoft Excel Driver (*.xls *.xlsx *.xlsm *.xlsb) Mac

On top of that ExcelFormat is free (CPOL), easy to use and doesn't need an installed Excel at all.If you are interessted, a slightly updated version can be downloaded here.

red_rainred_rain
Install Microsoft Excel Driver (*.xls *.xlsx *.xlsm *.xlsb)

Not the answer you're looking for? Browse other questions tagged c++databaseexcelodbc or ask your own question.