Report.pack Method

Serializes the current instance of the Report class.

Syntax

public container pack()

Run On

Called

Return Value

Type: container
A container that contains the current instance of the Report class.

Remarks

The returned container can be used as first argument to the report constructor.

Examples

The following example stores a report named "cust" in a container and runs the report in the container (not the container in the AOT).

static void testReportPack(args a) 
{ 
    report r1; 
    report r2; 
    reportRun rr; 
    container c; 
  
    r1 = new report("cust"); 
    c = r1.Pack(); 
    r2 = new report(c); 
    rr = new reportrun(r2); 
    rr.Run(); 
}

See Also

Report Class

Report.new Method

Pack-Unpack Design Pattern