Printing 如何设置';份数';用电子打印机打印?

Printing 如何设置';份数';用电子打印机打印?,printing,electron,web-content,Printing,Electron,Web Content,我试着使用这个代码,但是没有用 mainWindow.webContents.print({ silent: true, printBackground: false, deviceName: '',collate: true, copies: 5 } || {}, (success) => { }) 我想设置在用户单击electronjs应用程序中的“打印”按钮之前要打印多少份 我现在用NW.JS代替electron。我现在用NW.JS代替electron。

我试着使用这个代码,但是没有用

mainWindow.webContents.print({ silent: true, printBackground: false, deviceName: '',collate: true, copies: 5 } || {}, (success) => {

    })

我想设置在用户单击electronjs应用程序中的“打印”按钮之前要打印多少份

我现在用NW.JS代替electron。我现在用NW.JS代替electron。