Tutorial: View.getPrinters

View.getPrinters

DEPRECATED use System.getPrinters instead

Returns an array with all system printers

Example

const view = fin.View.getCurrentSync();

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