XLReportGen Frequently Asked Questions
Download the PDF document of XLReportGen FAQ. (155KB)
About XLReportGenWhat is XLReportGen?
What can I do with it?
What is the system requirement?
Do I need to install Microsoft Office?
What are the differences between the different versions of XLReportGen?
Where can I find XLReportGen 4?
What are the differences between the editions of XLReportGen?
Do I need 32-bit XLReportGen or 64-bit XLReportGen?
Can I make the complex report using XLReportGen?
Do you have any server version which I can use on the server to generate the reports?
When I run excelreport.exe from the command line, I receive a ¡°¡¯excelreport¡¯ is not recognized as an internal or external command, operable program or batch file.¡± error message.
Reporting with XLReportGenHow does it work?
Where can I find some samples?
What need I do to use samples?
How can I use these samples?
When I use samples, I receive a "Selected Collating Sequence Not Supported" error message.
What is a report file?
What is a report template file?
What is an XRF file?
What is a function?
How can I connect a data source using a connection string?
Instead of SELECT statements can I use Stored Procedures?
When I execute a SQL statement, I receive an "ODBC driver does not support the requested properties." error message.
When I execute a SQL statement, I receive an " Too few parameters. Expected 1." error message.
How can I test a SQL statement?
How can I sort data?
How can I have total?
How can I group data?
How can I make sub reports within the main report?
How can I have sub-totals for each group?
How can I create charts?
How to use parameters?
I need to change paths for both exported report and template location. Is there any way?
Can I place the data into columns rather than rows?
How to create Microsoft Excel reports with pictures?
Do I need to execute more than 1 SQL statement in one report processing?
How many SQL statements can I execute in one report processing?
I want to programmatically change some of the functions in the xrf file. How?
I hope the report can not be modified. How can I do?
SupportHow much will I pay for the technical support? Is it free?
I have more questions - who should I write to?
XLReportGen is a report generator for Microsoft Excel that outputs reports in Microsoft Excel spreadsheet format.
If you know how to use Microsoft Excel and write SQL statements, you can use XLReportGen to create all kinds of reports as you need. The report generated using XLReportGen is a Microsoft Excel workbook.
XLReportGen 5 was developed using OpenXML SDK. You do not need to install Microsoft Office for XLReportGen 5. However, XLReportGen 4 / XLReportGen 3 were developed using Microsoft Excel Visual Basic. You need to install Microsoft Office for XLReportGen 4 / XLReportGen 3.
After you have installed XLReportGen 5, you can find "XLReportGen4" directory under the XLReportGen directory. The directory contains the files of XLReportGen 4.
There are 2 types of editions issued for XLReportGen.
User can execute no more than 50 SQL statements in one report processing.
User can execute SQL statements unlimitedly in one report processing.
XLReportGen 3 is 32-bit software. XLReportGen 4 and XLReportGen 5 include 32-bit and 64-bit software.
32-bit XLReportGen can run on 32-bit or 64-bit windows. But it must run with 32-bit data provider (such as ODBC driver, OLEDB driver) and 32-bit Microsoft Office (XLReportGen 5 does not need Microsoft Office).
64-bit XLReportGen must run on 64-bit windows. And it must run with 64-bit data provider (such as ODBC driver, OLEDB driver) and 64-bit Microsoft Office (XLReportGen 5 does not need Microsoft Office).
Yes. This is a main feature of XLReportGen. The complexity might come from reports formatting as well as reports content.
You design reports like layouts, styles, formats directly using Microsoft Excel. You can take full advantage of Microsoft Excel including text formatting, number formats, text rotating, borders, colors, patterns, conditional formatting, style, drawing, pictures, and more.
In one report, you can execute more than one SQL statement, and get data using different queries. Further more, you can create a temporary table, prepare data using many SQL statements including INSERT/UPDATE/DELETE/INSERT SELECT, and then make a report.
No. But XLReportGen can be run on your desktop or server. So you can use XLReportGen on the server to generate the reports. If you want to run it in the background on the server, you need to run it in command line mode.
Your windows can not find the ¡°excelreport.exe¡±.
1. You can refer to excelreport.exe as the full path.
For XLReportGen 32-bit,
"C:\Program Files (x86)\LJZsoft\ExcelReport.exe" c:\myreport.xrf ¨Cc
For XLReportGen 64-bit,
"C:\Program Files\LJZsoft\ExcelReport.exe" c:\myreport.xrf ¨Cc
2. You also can add the path of excelreport.exe to System PATH variable.
To create a report with XLReportGen, you should do as follows:
1. Create a report template file using Microsoft Excel, define the layouts, styles, formats of reports.
2. Create an XRF file with an .xrf extension using XLReportGen. The XRF file tell XLReportGen how to extract data from database, and where and how to put data.
3. Run the XRF file to generate a report file.
After XLReportGen is installed, some sample reports are installed too. The sample reports include a sample database, some report template files (.xls) and XRF files (.xrf). They are located in the ExcelReport directory under \Samples.
To use these samples, you must add a data source named "Report Sample", and specify the database "Sample.mdb". If you have not installed MS access ODBC driver, please install it first.
Creating a System DSN for a Microsoft Access Database
The sample reports can be changed to adapt to your own needs.
This is a problem of multilanguage. You are trying to open a database or an object in a database that was created in another language edition of Microsoft Access. You can try as follow:
If you do not resolve the problem, please install or enable multilanguage support for your operating system. For more information, please refer to
You can create a new database on your computer, export data from "sample.mdb", and import into your database.
The report file is a Microsoft Excel workbook generated by XLReportGen.
To make a report using XLReportGen, you should create a report template file first. This report template is a Microsoft Excel workbook that defines the layouts, formats and styles of the report. In the report template, you can input static content such as titles, descriptions, comments, a cover, a company logo, and set the format for the static content and data got from data sources.
To generate a report with XLReportGen, you must create an XRF file with an .xrf extension. The XRF file contains information such as the name of the report template file, the name of the report file, log file name, data sources, parameters and functions. The XRF file tells XLReportGen how to get data from data sources and how to put data into a report.
A function includes a SQL statement and some arguments. A function can be used to execute a SQL statement, and tell XLReportGen whether or how to add data into a report.
To write a connection string, please refer to
Yes, you can use Stored Procedures.
It probably is a wrong SQL statement. Such as a missing column, or syntax error.
It is a wrong SQL.
You can test SQL statements using Microsoft Query that is a component of Microsoft Office. You can find it under the installation directory of Microsoft Office. For example,
"C:\Program Files\Microsoft Office\OFFICE11\MSQRY32.EXE"
Use SQL to sort your data. In a SELECT statement, you can use the ORDER BY clause to have your results displayed in a sorted order.
There are two ways.
1. You can add the totals using the math functions of Microsoft Excel, such as SUM. For more detail information, refer to ¡°Using Excel Formulas¡± in XLReportGen Help.
2. You can use the aggregate functions in SQL statement, such as COUNT, SUM, AVG, MAX, MIN.
To group data in a report, you should use GROUP argument in the REPORT function. For more detail information, refer to XLReportGen Help and the samples customer_profile.xrf, invoice.xrf, product_catalog.xrf and sales_detail.xrf within XLReportGen.
A subreport is a report within a report. A subreport would typically be used to perform one-to-many lookups such as Customer / Order / OrderDetails.
To make sub reports within the main report,
For more detail information, refer to the samples invoice.xrf, product_catalog.xrf and sales_detail.xrf within XLReportGen.
To add subtotals, you can use the functions of Microsoft Excel or aggregate functions in SQL statement.
1. You can add sub-totals using math functions of Microsoft Excel, such as SUM.
2. If you want to have a total and sub-totals,
3. You can add sub-totals using the aggregate function in SQL statement too.
For more detail information, please refer to the samples invoice.xrf and sales_detail.xrf within XLReportGen.
To create a chart in a report, you should create the chart in the template file. You can create a chart on its own sheet or as an embedded object on a worksheet.
For more detail information, please refer to the sample monthly_sales.xrf within XLReportGen.
In SQL statements, you can use parameters.
XLReportGen will replace the parameter name with the actual value before it submits the SQL statements to data sources.
Define a parameter as follows:
Name: $CustomerName Title: Customer Name
You can use the parameter name "$CustomerName" in SQL statements. The parameter name in SQL statements should be delimited by quotation mark. For example:
SELECT CompanyName ,CityName ,CountryName ,ContactName FROM Customers, Cities, Countries WHERE Customers.CityCode = Cities.CityCode AND Customers.CountryCode = Cities.CountryCode AND Customers.CountryCode = Countries.CountryCode AND CompanyName LIKE '$CustomerName%' ;
You can use parameters in the path and name of the report file, template file and log file. For example, you define a parameter $CustomerID, you can name the report file as follows:
Of course, just write FILLORDER=col in REPORT function. For example, there are 1 field and 10 records, you can show them as 1 row and 10 columns on report.
You can insert pictures into your report from using many popular graphics files XLReportGen.
XLReportGen will read the graphics files, insert them into the report, and position and size the pictures. For more detail information, refer to the samples employee_profile.xrf and product_catalog.xrf within XLReportGen.
In most of reports, you just need to execute one SQL statement. But sometimes, you want to execute more than one SQL statement in one report processing.
It is dependent on the license of XLReportGen you have purchased. For detailed information, see Licenses.
The XRF file is a text file. You can write a program to make an XRF file using C, perl or DOS shell, and then run XLReportGen to generate report. These steps can be written into a batch file.
You can protect the generated report so that it can not be modified. To protect the report, select the Protect Report check box in the Configuration dialog box.
Yes, it's completely free for all.
Copyright © 2004 - 2014 LJZsoft Corporation. All rights reserved.