Microsoft Excel reporting and 
 data analyzing with practically no coding. 
 .Net, ActiveX, and VCL versions. 
 www.AfalinaSoft.com  

Home    Products    Downloads    Registered users    Support    Prices    Order    Primary Subscription

 

MS Office COM Add-ins. Microsoft Excel reporting 
 and data analyzing


TxlReport class - AfalinaSoft XL Report Programmer's Reference

<< Previous

Table of contents

Next >>


TxlReport class

The TxlReport class is the only class accessible in Delphi component palette. This class encapsulates all the mechanisms and algorithms of Microsoft Excel report generation. To build a report using an existing template you have to:

  • Create an instance of the class, at either design-time or run-time.
  • Specify the path and file name of the template workbook in the XLSTemplate property.
  • Add all the datasets required in report generation to DataSources collection and define their properties.
  • Call the Report method of this class.

Example of report building on tQuickStart.xls template with tblCustomers and tblOrders datasets:

procedure TfrmQuickStart.btnReport2Click(Sender: TObject);
var Report: TxlReport;
begin
Report := TxlReport.CreateEx(Self, 'tQuickStart.xls');
try
Report.AddDataSet(tblCustomers);
Report.AddDataSet(tblOrders, 'OrdersRange');
Report.Report(false);
finally
Report.Free;
end;
end;











<< Previous

Table of contents

Next >>



Components

xlReport xlReport

Developed for

Delphi 4, 5, 6, 7
C++Builder 4, 5, 6

Excel version supported

MS Excel 97 (SR2)
MS Excel 2000
MS Excel 2002 (XP)
MS Excel 2003



[ Download it ]
[ Order now ]



We are Borland 
 technology partner

Copyright © 1999-2006
All right reserved.
Privacy Policy

Write to WebMaster

Page Top
Add-in Express - COM Add-ins, Smart Tags and RTDS in C#, VB, C++, J#, and Delphi