qtXLS – Read/Write Excel from Fortran
The qtXLS Library offers the programmer routines to access files in the Microsoft Excel format (.xls).
New: 32 and 64-bit versions for Intel Visual Fortran (see release notes).
With qtXLS routines you can
||create files in the Excel data format|
||create tables (sheets) in these files|
||write data to tables (sheets)|
||read data from tables (sheets)|
||enquire information about tables (sheets) and columns|
To perform these functions the library provides you with the following routines:
|Function group / qtXLS routine||Function|
|qtXLSCreateEXCELFile||Create Excel file|
|qtXLSOpenEXCELFile||Open Excel file|
|qtXLSCloseEXCELFile||Close Excel file|
|qtXLSCreateTable||Create a table (sheet) and define columns|
|qtXLSReadRows||Read rows from table (sheet)|
|qtXLSWriteRows||Write rows to table (sheet)|
|qtXLSGetTableNames||Get table (sheet) names in the file|
|qtXLSDoesTableNameExist||Check if a table (sheet) name exists|
|qtXLSGetColumnInfo||Enquire information about columns|
|qtXLSGetRowCount||Enquire number of rows in a table (sheet)|
|qtXLSGetNumericValue||Convert the value of a SQL numeric type into a real value|
|Error handling functions|
|qtXLSGetErrorMessages||Get error messages|
|qtXLSSetErrorLevel||Control error handling|
|qtXLSSetErrorMessagesDisplay||Set up display of error messages|
|qtXLSGetszStringLength||Get length of a null-terminated string|
|qtSetLicence_qtXLS||Authorize usage of qtXLS (Fortran only)|
|qtXLSSetLicencePath||Set path for licence file|
The example program
qtXLSDemoWriteTable.f90 (Fortran 90 source file)
qtXLSDemoWriteTable.cpp (C/C++ source file)
creates the following Excel sheet. The program demonstrates how the qtXLS routines are used.
The qtXLS software is provided as a dynamic-link-library (qtXLS.dll) together with bindings determined to use with your compiler (import libraries and other files necessary to compile and link).
Supported Compiler Systems (Bindings)
At present the following compilers are supported
- Absoft ProFortran for Windows v10.0
- Compaq Visual Fortran v6.6
- Intel Visual Fortran (v8.1, v9.x)
- Lahey/Fujitsu Fortran for Windows (LF95) v5.7
- Microsoft Visual C++ v6 and v7 (2003)
- Silverfrost / Salford FTN95 (for Win32) v5.0 and later
These binding may also be suitable for newer versions of the compilers and possibly also for compatible compilers. If your compiler is not listed, but you would like to use qtXLS nevertheless, simply try out the binding anyway to which your compiler manufacturer claims to be compatible.
You can download an evaluation copy of qtXLS (software and documentation in PDF format (2)). The software is limited in function (1). Size of the download file approx. 4 MB
(1) The evaluation copy allows to import and export of rows limited to 50 rows of a single table (sheet). Upon start of a program based on qtXLS there will be a message informing about this limitation.
(2) The Adobe Acrobat Reader (to read documents in PDF format) is to be found here.
Prices & Licensing
The evaluation copy can be changed into a version without limitation (1) by purchase of a qtXLS licence.
The licence allows you to use the qtXLS software for the development of programs, i.e. to create executable files (.exe). In addition, the licence covers the right to the passing on of the qtXLS.dll as well as the licence file (that you will receive on purchase of qtXLS). This means, there are no royalty or run-time fees to pay.
We deliver the licence (QTXLS.0010) by sending a licence file via Mail (no shipping costs apply). The licence file contains the data specified by you (for example, name and address), a licence number and a licence key.
IIF you prefer to obtain qtXLS on a CD-ROM together with a manual, order both items QTXLS.0010 and QTXLS.0100 (the licence file will be put on the CD-ROM).
To be able to use the qtXLS software, the following is required::
- PC with a Pentium processor, hard disk with at least 15 MB memory available, a minimum of 32 MB RAM.
- One of the following operating systems: Microsoft Windows 95, Windows 98, Windows NT 4.0, Windows 2000, 2003, Windows XP and compatible.
qtXLS is based on Microsoft Excel ODBC drivers. At installation of Excel these are usually installed. If these drivers are missing, they are either supplied by installation of Microsoft Excel or by installation of the
This is probably the cheaper alternative, because the MDAC can be downloaded for free from Microsoft’s WebSite. If the link above doesn’t help you to find them, try the search function in Microsoft’s “Download Center”.
Of course, besides the above, a compiler system is needed (see the list of supported compilers above).
What do our Customers say about us?
Our Account Manager, Stephanie, was fantastic in dealing with our questions and my colleague’s concerns (many thanks Stephanie!) and your colleague Joe has provided invaluable assistance to my colleagues and myself during our initial and extended testing phases of Reference Manager.JH, Birmingham, UK
The new Quick Fit Gadget is fantastic and I absolutely love that I can output results to a worksheet so that I can get a column of a particular parameter on which I can do statistical analysis.Greg Scott, University of Illinois at Urbana-Champaign
THANK YOU – you are a star and have saved my thesis! Your instructions worked perfectly. If I am purchasing upgrades I will definitely go to Adept now I know what level support you can provide.CB, Plymouth, UK
Excellent tutor – very clear, very impartial, simply excellent.
For the time being we are unable to offer the following product ranges although we are currently working hard to increase the number of products we can offer in the future. Please contact us to talk about alternative products that we may be able to offer you.