Report.designNumber Method

Gets an existing design.

Syntax

public ReportDesign designNumber([int number])

Run On

Called

Parameters

  • number
    Type: int
    An integer that specifies the desired design; optional.

Return Value

Type: ReportDesign Class
The specified reportDesign, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if the design did not exist.

Remarks

If number is < 1, design 1 is returned.

Examples

void testDesign(args a) 
{ 
    report r; 
    reportDesign rd; 
    int i; 
 
    r = new report("myReport"); 
  
    if (r.DesignCount() == 0) 
    { 
        print "The report has no designs"; pause; 
    } 
  
    for (i=1; i<=r.DesignCount();i++) 
    { 
        rd = r.DesignNumber(i); 
        print "Design No. ", i, " has name ", rd.Name(); 
    } 
    pause; 
}

See Also

Report Class

Report.design Method

Report.designCount Method