public class PrinterSettings extends Object
Specifies information about how a document is printed, including the printer that prints it, when printing from a Windows Forms application .
| Constructor and Description |
|---|
PrinterSettings() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getFromPage()
Gets the page number of the first page to print.
|
String |
getPrinterName()
Gets the name of the printer to use.
|
static int |
getPrintRange()
Gets the page numbers that the user has specified to be printed.
|
static int |
getToPage()
Gets the number of the last page to print.
|
void |
setPrinterName(String value)
Sets the name of the printer to use.
|
public static int getFromPage()
Gets the page number of the first page to print.
com.aspose.ms.System.ArgumentException - The FromPage(PrinterSettings.getFromPage()) property's value is less than zero.public static int getPrintRange()
Gets the page numbers that the user has specified to be printed.
PrintRange(PrinterSettings.getPrintRange()) values.com.aspose.ms.System.ComponentModel.InvalidEnumArgumentException - The value of the PrintRange(PrinterSettings.getPrintRange()) property is not one of the PrintRange(PrinterSettings.getPrintRange()) values.public static int getToPage()
Gets the number of the last page to print.
com.aspose.ms.System.ArgumentException - The value of the ToPage(PrinterSettings.getToPage()) property is less than zero.public final String getPrinterName()
Gets the name of the printer to use.
public final void setPrinterName(String value)
Sets the name of the printer to use.
value - the name of the printer to use.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.