StartReport Class

 

A class that facilitates the processing of background reports.

 

Usage:

 

The class for the report to be printed must inherit the abstract class: ReportBase

and contain a method as follows:

Example

public override void Process(){}

that either kicks off the report processing or calls the method that does.

 

The class or window that initiates the report first encapsulates any constructor

variables in an object array:

Example

object[] parms = {arg1, arg2, arg3};
.

These must be the same type and in the same order as the report class' constructor

argument list.

 

Then the initiating class/window makes the call:
C#
StartReport.Start(reportClass, parms)

where 'reportClass' is the fully qualified report class such as:

Example

StartReport.Start("MbcsCentral.WinPM.StatusReport", parms)

Definition

Namespace: MbcsCentral
Assembly: MbcsCentral (in MbcsCentral.exe) Version: 2.0.1.15 (2.0.1.15)
C#
public class StartReport
Inheritance
Object    StartReport

Constructors

StartReportInitializes a new instance of the StartReport class

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ReportThread This is the entry point for the report thread Notice that it instantiates the class for the report and calls the abstract method Process which must, of course, exist in the report class and be the starting method there.
Start Sets up variables for report, create report thread and start it
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also