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:
The class or window that initiates the report first encapsulates any constructor variables in an object array:
Then the initiating class/window makes the call:
StartReport.Start(reportClass, parms)
public class StartReport
StartReport | Initializes a new instance of the StartReport class |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone | Creates 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 |
ToString | Returns a string that represents the current object. (Inherited from Object) |