How to output report to Microsoft Excel
XLReportGen is simple and easy to use. It does not require programming to create reports. It is enough if you know how to use Microsoft ® Excel ® and write SQL statements. To output report to Excel using XLReportGen, it requires only three steps:
Create a report template file using Microsoft Excel, define the layouts, styles, formats of reports.
For example, to create a Customer List report, you make a report template as follows.
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.
For example, you create an XRF file, and write a report function and SQL as follows.
/* Customer List */ @F1=Report(sheet="Customer List" type=var cell=A6 reserve=2) SELECT CompanyName ,CityName ,CountryName ,ContactName FROM Customers, Cities, Countries WHERE Customers.CityCode = Cities.CityCode AND Customers.CountryCode = Cities.CountryCode AND Customers.CountryCode = Countries.CountryCode ORDER BY CompanyName,CityName,CountryName ;
Run XLReportGen to generate a report file in Microsoft Excel spreadsheet.
The report Customer List is generated as follows.
Download XLReportGen Introduction PDF (141KB)
Copyright © 2004 - 2014 LJZsoft Corporation. All rights reserved.