2.3. TfrxReportClient TfrxReportClient is a client component for query. It receives and shows the reports from the server. Required component: TfrxServerConnection. TfrxReportClient is analogy of TfrxReport in previous versions of the applications based on traditional architecture. TfrxReportClient class inherited from TfrxReport Properties: Connection: TfrxServerConnection - link to object of TfrxServerConnection; ReportName: String - name of the requested report, use method LoadFromFile for setting this property (see below). Variables: TfrxVariables - contain report variables; can be used for variables transfer from client to server; Errors: TStrings - errors list. Methods: procedure LoadFromFile(FileName: String) - set the name of the requested report to property ReportName; path to the file is ignored; function PrepareReport: Boolean - performs connection to the report server, requests a report, transfers report variables to server, and downloads a report result, which then is put to the "PreviewPages" Property. Result of the function is "True" if the task is successfully accomplished, otherwise it becomes "False"; procedure ShowPreparedReport - previews the received report; procedure ShowReport - requests and previews the report.

| < previous page | main page | next page > |