PrintJobSettings.allPages Method

Definition

Overloads

allPages()

Controls whether the All or Pages option button should be selected when you run the sysPrintForm.

allPages(Boolean)

allPages()

Controls whether the All or Pages option button should be selected when you run the sysPrintForm.

public:
 virtual bool allPages();
public virtual bool allPages ();
abstract member allPages : unit -> bool
override this.allPages : unit -> bool
Public Overridable Function allPages () As Boolean

Returns

true if the All radio button should be selected; otherwise, false, and the Pages option button is selected.

Remarks

The method is for internal use by sysPrintForm.

The following example prints pages 2 to 4 and selects the Pages option button instead of the All option button.

static void PrintingToPDF(Args _args) 
{ 
    Args                args; 
    ReportRun           rr; 
    str reportName = 'Cust'; 
    int i; 
    int numReports = 10; 
    args = new Args(reportName); 
    rr = new ReportRun(args,''); 
    rr.setTarget(Printmedium::File); 
    rr.printJobSettings().format(PrintFormat::RTF); 
    rr.printJobSettings().fileName("C:\\tmp\\Cust_ReportRange2.rtf"); 
    // Select the Pages option button rather than the All option button. 
    rr.printJobSettings().allPages(false); 
    rr.printJobSettings().from(2); 
    rr.printJobSettings().to(4); 
    rr.query().interactive(false); 
    rr.report().interactive(false); 
    rr.run(); 
}

Applies to

allPages(Boolean)

public:
 virtual bool allPages(bool _all);
public virtual bool allPages (bool _all);
abstract member allPages : bool -> bool
override this.allPages : bool -> bool
Public Overridable Function allPages (_all As Boolean) As Boolean

Parameters

_all
Boolean

A boolean value that, if true, the All option button is selected; otherwise, the Pages option button is selected.

Returns

Applies to