Tutorial: Window.getPrinters

Window.getPrinters

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);
});