getPrinterName

getPrinterName(): String;

The getPrinterName method of the Printer class returns the name of the current printer; for example:

HP LaserJet 4Si/4Si MX PS

Exception 15021 (No default printer exists for this user) is raised, if you do not have a printer set up.