Quickreport 6: The Server Component

The component class is  TQRRTModule which has the following properties and methods.

Using the component in applications is described in topics cgi-bin applications and Apache Server Modules.

 

Properties

OnNeedData : TQROnNeedDataEvent

If this property is set to a suitable procedure it will be assigned automatically to the QuickRep object.

 

DesignFile : String

The dfm or qr2 file of the report.

 

Dataset : TDataset

If this property is set to a suitable dataset  it will be assigned automatically to the QuickRep object.

The dataset takes precedence over 'OnNeedData'.

  

UseContentHeader : boolean 

This must be set to true for cgi-bin applications to generate the required header.

 

QRRTQuickrep : TQuickrep [read only]

The TQuickRep object that will be execute. It is 'nil' until ReportLoaded is true.

 

ReportLoaded : boolean [read only]

This is true if a QuickReport object has been loaded successfully.

 

 

Methods

 

constructor Create( AOwner : TComponent)    

 

procedure LoadDesign;

Loads a design from the file specified in the 'DesignFile' property.

 

procedure LoadDesignString(instring : string);

Loads a design from the specified in the specied string.

 

procedure LoadDesignFromStream(instream : TStream);

Loads a design from the  specified memory stream.

 

procedure ExecuteDesign;

Executes the design and produces an html rendition available in the 'htmlStream' property of QRRTQuickrep.