PrinterSettings
Inheritance: java.lang.Object
public class PrinterSettings
Specifies information about how a document is printed, including the printer that prints it.
Constructors
Constructor | Description |
---|---|
PrinterSettings() |
Methods
Method | Description |
---|---|
getCollate() | Gets a value indicating whether the printed document is collated. |
getCopies() | Gets the number of copies of the document to print. |
getFromPage() | Gets the page number of the first page to print. |
getPrintFileName() | Gets the file name, when printing to a file. |
getPrinterName() | Gets the name of the printer to use. |
getSupportsColor() | Gets a value indicating whether this printer supports color printing. |
getToPage() | Gets the number of the last page to print. |
isDefaultPrinter() | Gets a value indicating whether the PrinterName property designates the default printer, except when the user explicitly sets PrinterName. |
setCollate(boolean value) | Sets a value indicating whether the printed document is collated. |
setCopies(short value) | Sets the number of copies of the document to print. |
setFromPage(int value) | Sets the page number of the first page to print. |
setPrintFileName(String value) | Sets the file name, when printing to a file. |
setPrinterName(String value) | Sets the name of the printer to use. |
setToPage(int value) | Sets the number of the last page to print. |
toString() | Provides information about the PrinterSettings in string form. |
PrinterSettings()
public PrinterSettings()
getCollate()
public boolean getCollate()
Gets a value indicating whether the printed document is collated.
Returns: boolean - a value indicating whether the printed document is collated.
getCopies()
public short getCopies()
Gets the number of copies of the document to print.
Returns: short - the number of copies of the document to print.
getFromPage()
public int getFromPage()
Gets the page number of the first page to print.
Returns: int - the page number of the first page to print.
getPrintFileName()
public String getPrintFileName()
Gets the file name, when printing to a file.
Returns: java.lang.String - the file name, when printing to a file.
getPrinterName()
public String getPrinterName()
Gets the name of the printer to use.
Returns: java.lang.String - the name of the printer to use.
getSupportsColor()
public boolean getSupportsColor()
Gets a value indicating whether this printer supports color printing.
Returns: boolean - a value indicating whether this printer supports color printing.
getToPage()
public int getToPage()
Gets the number of the last page to print.
Returns: int - the number of the last page to print.
isDefaultPrinter()
public boolean isDefaultPrinter()
Gets a value indicating whether the PrinterName property designates the default printer, except when the user explicitly sets PrinterName.
Returns: boolean - a value indicating whether the PrinterName property designates the default printer.
setCollate(boolean value)
public void setCollate(boolean value)
Sets a value indicating whether the printed document is collated.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a value indicating whether the printed document is collated. |
setCopies(short value)
public void setCopies(short value)
Sets the number of copies of the document to print.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short | the number of copies of the document to print. |
setFromPage(int value)
public void setFromPage(int value)
Sets the page number of the first page to print.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | the page number of the first page to print. |
setPrintFileName(String value)
public void setPrintFileName(String value)
Sets the file name, when printing to a file.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | the file name, when printing to a file. |
setPrinterName(String value)
public void setPrinterName(String value)
Sets the name of the printer to use.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | the name of the printer to use. |
setToPage(int value)
public void setToPage(int value)
Sets the number of the last page to print.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | the number of the last page to print. |
toString()
public String toString()
Provides information about the PrinterSettings in string form.
Returns: java.lang.String - information about the PrinterSettings in string form.