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 booleangetCollate()Gets a value indicating whether the printed document is collated.shortgetCopies()Gets the number of copies of the document to print.intgetFromPage()Gets the page number of the first page to print.StringgetPrinterName()Gets the name of the printer to use.StringgetPrintFileName()Gets the file name, when printing to a file.booleangetSupportsColor()Gets a value indicating whether this printer supports color printing.intgetToPage()Gets the number of the last page to print.booleanisDefaultPrinter()Gets a value indicating whether the PrinterName property designates the default printer, except when the user explicitly sets PrinterName.voidsetCollate(boolean value)Sets a value indicating whether the printed document is collated.voidsetCopies(short value)Sets the number of copies of the document to print.voidsetFromPage(int value)Sets the page number of the first page to print.voidsetPrinterName(String value)Sets the name of the printer to use.voidsetPrintFileName(String value)Sets the file name, when printing to a file.voidsetToPage(int value)Sets the number of the last page to print.StringtoString()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.
-
-