Options
All
  • Public
  • Public/Protected
  • All
Menu

It represents a printer installed in the client machine with an associated OS printer driver.

Hierarchy

  • InstalledPrinter

Implements

Index

Constructors

constructor

  • new InstalledPrinter(printerName: string, printToDefaultIfNotFound?: boolean, trayName?: string, paperName?: string, duplex?: DuplexMode): InstalledPrinter
  • Creates an instance of the InstalledPrinter class with the specified printer name.

    Parameters

    • printerName: string

      The name of the printer installed in the client machine.

    • Default value printToDefaultIfNotFound: boolean = false

      Whether to use Default printer if the specified one is not found or missing.

    • Default value trayName: string = ""

      The name of the tray to print

    • Default value paperName: string = ""

      The name of the paper

    • Default value duplex: DuplexMode = DuplexMode.Default

      The duplex option

    Returns InstalledPrinter

Properties

Id

Id: number = 1

Accessors

duplex

duplex:

Gets or sets the printer's double-sided (duplex) printing capability. Default is the current printer's driver setting.

paperName

paperName:

Gets or sets the name of the Paper supported by the client printer. Default value is an empty string.

printToDefaultIfNotFound

printToDefaultIfNotFound:

Gets or sets whether to print to Default printer in case of the specified printer name is not found or missing. Default is false.

printerName

printerName:

Gets or sets the name of the printer installed in the client machine. Default value is an empty string.

trayName

trayName:

Gets or sets the name of the tray supported by the client printer. Default value is an empty string.

Methods

serialize

  • serialize(): string