getAllPaperSources

getAllPaperSources(ia: IntegerArray input;
                   sa: StringArray input): Integer updating;

The getAllPaperSources method of the Printer class populates integer and string arrays with the numbers and names, respectively, of the paper sources available for the current printer.

The return value represents the number of paper sources for the current printer.

The following example shows the use of the getAllPaperSources method.

vars
    ia : IntegerArray;
    sa : StringArray;
begin
    create sa transient;
    create ia transient;
    app.printer.getAllPaperSources(ia, sa);
    write "Paper sources = " & app.printer.getAllPaperSources(ia,
                           sa).String;  // Outputs Paper sources  = 10
epilog
    delete sa;
    delete ia;
end;

For details about returning the valid paper sources for a specified printer device on the application server or a presentation client, see the Printer class getAllPrinterPaperSources method.