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

Properties

Accessors

Methods

Constructors

constructor

  • new InstalledPrinter(printerName: string, printToDefaultIfNotFound?: boolean, trayName?: string, paperName?: string): 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

    Returns InstalledPrinter

Properties

Id

Id: string = String.fromCharCode(1)

Accessors

paperName

paperName:

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:

Methods

serialize

  • serialize(): string