Tutorial: View.print

View.print

Prints the view's web page. When silent is set to true, the API will pick the system's default printer if deviceName is empty and the default settings for printing.

Use the CSS style page-break-before: always; to force print to a new page.

Example

const view = fin.View.getCurrentSync();

view.print({ silent: false, deviceName: 'system-printer-name' }).then(() => {
    console.log('print call has been sent to the system');
});