Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in select printer deviceName #20096

Closed
pedrohosoares opened this issue Sep 3, 2019 · 1 comment
Closed

Problem in select printer deviceName #20096

pedrohosoares opened this issue Sep 3, 2019 · 1 comment

Comments

@pedrohosoares
Copy link

###Electronjs ^6.0.4

When 'im select deviceName for printer the document, my app dont print, but, if put deviceName = '' (selecting the pattern printer), the app printer with success.

My code doesnt work:

janelaPrint.loadURL(url_balcao);
janelaPrint.webContents.once('did-finish-load', function() {
janelaPrint.webContents.print(
{
silent:true,
printBackground:false,
deviceName:'MP4200TH'
},
function(err){
console.log(err);
if(err){
}
}
);

@codebytere
Copy link
Member

This has been fixed in v7, and needs to be backported to 6 if possible but it may be too difficult. See #17523 for more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants