Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / PrintInfo Class / PageOrder Property
Example


In This Topic
    PageOrder Property
    In This Topic
    Gets or sets the order in which pages print.
    Syntax
    'Declaration
     
    Public Property PageOrder As PrintPageOrder
    'Usage
     
    Dim instance As PrintInfo
    Dim value As PrintPageOrder
     
    instance.PageOrder = value
     
    value = instance.PageOrder
    public PrintPageOrder PageOrder {get; set;}

    Property Value

    PrintPageOrder setting that specifies the page order
    Remarks

    When you set this property to PrintPageOrder.Auto, the Spread component prints pages down and then across.

    The printed pages are numbered in the order in which they are printed. If you want the first page to start numbering at a number other than 1, specify the starting number using the FirstPageNumber property.

    Example
    This example shows how to define the print job settings.
    // Define the printer settings
    FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
    printset.JobName = "New Print Job";
    printset.PageOrder = FarPoint.Win.Spread.PrintPageOrder.Auto;
    printset.PaperSize = new System.Drawing.Printing.PaperSize("Letter", 600, 300);
    printset.PaperSource = new System.Drawing.Printing.PrinterSettings.PaperSources[0].SourceName;
    printset.Printer = "HP6L";
    
    // Assign the printer settings to the sheet and print it
    fpSpread1.Sheets[0].PrintInfo = printset;
    fpSpread1.PrintSheet(0);
    ' Define the printer settings
    Dim printset As New FarPoint.Win.Spread.PrintInfo()
    printset.JobName = "New Print Job"
    printset.PageOrder = FarPoint.Win.Spread.PrintPageOrder.Auto
    printset.PaperSize = New System.Drawing.Printing.PaperSize("Letter", 600, 300)
    printset.PaperSource = New System.Drawing.Printing.PrinterSettings.PaperSources(0).SourceName
    printset.Printer = "HP6L"
    
    ' Assign the printer settings to the sheet and print it
    FpSpread1.Sheets(0).PrintInfo = printset
    FpSpread1.PrintSheet(0)
    See Also