Report.design Method

Retrieves an existing design.

Syntax

public ReportDesign design([str name])

Run On

Called

Parameters

  • name
    Type: str
    The name of the report to be returned; optional.

Return Value

Type: ReportDesign Class
The design that has the specified name, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if it was not found.

Remarks

If no argument is supplied and the report only contains one design, the method returns the one design.

Examples

static void testDesign(args a) 
{ 
    report r; 
    reportDesign rd; 
    r = new report("Cust"); 
  
    rd = r.Design(); 
    if (rd) 
        print "a) r.design() : ", rd.Name(); 
  
    rd = r.Design(""); 
    if (rd) 
        print "b) r.design(emptyString) : ", rd.Name(); 
  
    rd = r.Design('customer'); 
    if (rd) 
        print "c) r.design(customer) : ", rd.Name(); 
  
    pause; 
}

See Also

Report Class

Report.designNumber Method