Fernando Aureliano

Results 7 comments of Fernando Aureliano

@trithesh My barcode dont even is printed, instead, I got a code error. Did you have this problem?

@dineshvasan same problem here =(

How do I can import the plugin on home.ts? ``` import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; @Component({ selector: 'page-home', templateUrl: 'home.html' }) export class...

Having same problem here. My function is: ``` print() { var element = document.getElementById('square'); html2canvas(element, { allowTaint : true }).then((canvas) => { canvas.getContext('2d'); var image = canvas.toDataURL('image/jpeg', 1.0); console.log(image); sunmiInnerPrinter.printOriginalText("Test");...

> Change to the below code, it will work. > > let width = 200; //width of the above image > let height = 229; // height of the above...

Hi @zoldek IT WORKS! Thank you!!!!

@iThamer First you need to convert the DOM to image and then use printBitmap. You can use html2canvas to convert the markup to image. like that: ``` print() { var...