com.aspose.tasks

Interfaces

Classes

Exceptions

Class PrinterSettings


  • public class PrinterSettings
    extends Object
    Specifies information about how a document is printed, including the printer that prints it.
    • Constructor Detail

      • PrinterSettings

        public PrinterSettings()
    • 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.
      • toString

        public String toString()
        Provides information about the PrinterSettings in string form.
        Overrides:
        toString in class Object
        Returns:
        information about the PrinterSettings in string form.