[]
Gets or sets the name of the paper source (input tray) used for printing.
public string PaperSourceName { get; set; }
Public Property PaperSourceName As String
| Type | Description |
|---|---|
| string | The name of the paper source. The default is null, which uses the printer's default tray. The name must match one of the paper source names reported by the target printer driver (case-insensitive). |
PrintOutOptions options = new PrintOutOptions();
options.ActivePrinter = "HP LaserJet Pro";
options.PaperSourceName = "Tray 2";
worksheet.PrintOut(options);
| Type | Condition |
|---|---|
| ArgumentException | Thrown when the specified paper source name is not found for the target printer. |