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