Spread Windows Forms 7.0 Product Documentation
Printer Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > PrintInfo Class : Printer Property

Glossary Item Box

Gets or sets the name of the printer to use for printing.


Visual Basic (Declaration) 
Public Property Printer As String
Visual Basic (Usage)Copy Code
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.
C#Copy Code
// 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;
Visual BasicCopy Code
' 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


Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.