Tutorial: Window.getPrinters

Window.getPrinters

DEPRECATED use System.getPrinters instead

Returns an array with all system printers

Example

const win = fin.Window.getCurrentSync();

win.getPrinters()
    .then((printers) => {
        printers.forEach((printer) => {
            if (printer.isDefault) {
                console.log(printer);
            }
        });
    })
    .catch((err) => {
        console.log(err);
    });