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

noting printing in zebra printer #41

Open
swati199308 opened this issue Apr 25, 2023 · 0 comments
Open

noting printing in zebra printer #41

swati199308 opened this issue Apr 25, 2023 · 0 comments

Comments

@swati199308
Copy link

I used this plugin to connect zebra printer through Bluetooth but while clicking on the print it showing printing is successful but nothing is printing in thermal printer.
Can you please guide me what is wrong on the app
used this fuction only
printViaBluetooth(){
console.log('enter into 33 line')
ThermalPrinter.listPrinters({type: 'bluetooth'}, function(printers) {
console.log('enter into 35 line')
console.log('enter into 35 line')

         let printer = printers[0];
         console.log('enter into 39 line' + printer)
         console.log('enter into 40 line' + printer.address)
          // Permission granted - We can print!
          ThermalPrinter.printFormattedText({
              type: 'bluetooth',
              id: printer.address,
              text: '[C]<u><font size="big">Hello World</font></u>' // new lines with "\n"
          }, function() {
              console.log('Successfully printed!');
          }, function(error) {
              console.error('Printing error', error);
          });    
}, function(error) {
    console.error('Ups, we cant list the printers!', error);
});

}

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

1 participant