Tel: +44(0)1865 300 579
Fax: +44(0)1865 300 232
The qtXLS Library offers the programmer routines to access files in the Microsoft Excel format (.xls).
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 |
|
File functions |
|
|
qtXLSCreateEXCELFile |
Create Excel file |
|
qtXLSOpenEXCELFile |
Open Excel file |
|
qtXLSCloseEXCELFile |
Close Excel file |
|
Table functions |
|
|
qtXLSCreateTable |
Create a table (sheet) and define columns |
|
qtXLSReadRows |
Read rows from table (sheet) |
|
qtXLSWriteRows |
Write rows to table (sheet) |
|
Information functions |
|
|
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 |
|
Other functions |
|
|
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
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.
Download
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).
System Requirements
To be able to use the qtXLS software, the following is required::
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).