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

In This Topic
    Printer Property
    In This Topic
    Gets or sets the name of the printer to use for printing.
    Public Property Printer As String
    Dim instance As PrintInfo
    Dim value As String
    instance.Printer = value
    value = instance.Printer
    public string Printer {get; set;}

    Property Value

    String containing the name of the printer
    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;
    ' 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
    See Also