Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / PrintType Enumeration
Example Example


In This Topic
    PrintType Enumeration
    In This Topic
    Specifies the type of print range used to print the sheet.
    Syntax
    'Declaration
     
    Public Enum PrintType 
       Inherits System.Enum
    'Usage
     
    Dim instance As PrintType
    public enum PrintType : System.Enum 
    Members
    MemberDescription
    All [0] Prints the entire sheet
    CellRange [1] Prints the area specified by the PrintInfo.ColStart, PrintInfo.ColEnd, PrintInfo.RowStart, and PrintInfo.RowEnd properties
    CurrentPage [2] Prints the current page of the sheet
    PageRange [3] Prints the pages in the range specified by the PrintInfo.PageStart and PrintInfo.PageEnd properties
    Remarks

    For more information about printing, refer to Managing Printing.

    Example
    FarPoint.Win.Spread.PrintMargin pm = new FarPoint.Win.Spread.PrintMargin(5, 5, 5, 5, 5, 5);
    FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo("Header", "", "", pm, FarPoint.Win.Spread.PrintOrientation.Landscape,
    FarPoint.Win.Spread.PrintPageOrder.Auto, 
    true, true, true, true, true, true, true, FarPoint.Win.Spread.PrintType.CurrentPage, 0, 2, 0, 2, 1, 1, true, true, true, 2,
    false, "", 1, true);
    fpSpread1.ActiveSheet.ColumnCount = 5;
    fpSpread1.ActiveSheet.RowCount = 5;
    fpSpread1.ActiveSheet.PrintInfo = pi;
    Dim pm As New FarPoint.Win.Spread.PrintMargin(5, 5, 5, 5, 5, 5)
    Dim pi As New FarPoint.Win.Spread.PrintInfo("Header", "", "", pm, FarPoint.Win.Spread.PrintOrientation.Landscape, FarPoint.Win.Spread.PrintPageOrder.Auto,
    True, True, True, True, True, True, True, FarPoint.Win.Spread.PrintType.CurrentPage, 0, 2, 0, 2, 1, 1, True, True, True, 2,
    False, "", 1, True)
    FpSpread1.ActiveSheet.ColumnCount = 5
    FpSpread1.ActiveSheet.RowCount = 5
    FpSpread1.ActiveSheet.PrintInfo = pi
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             FarPoint.Win.Spread.PrintType

    See Also