Gayathri

Results 17 comments of Gayathri

error: constructor ModuleRegistryAdapter in class ModuleRegistryAdapter cannot be applied to given types; new ModuleRegistryAdapter(), ^ required: ReactModuleRegistryProvider found: no arguments reason: actual and formal argument lists differ in length Getting...

> 1. you need to declare the variables before any class declaration as follows: > > declare var sunmiInnerPrinter: any; > > 1. you need to use the "sunmiInnerPrinter" after...

> 1. make sure you have the cordova-plugin-sunmi-inner-printer > 2. please do the ff: cd to your project dir and type "cordova plugin list" ya i am having sir, cordova-plugin-device...

> I remember I have the same problem, then I did modify this plugin. I will post the modify version asap Tq sir, pls post asap

> @gayu1712 > > > cd PATH/TO/NEW/SUNMI/PRINTER > git clone [email protected]@tmalbonph:cordova-plugin-sunmi-inner-printer.git > > > cd PATH/OF/YOUR/IONIC/PROJECT > ionic cordova plugin rm cordova-plugin-sunmi-inner-printer > > > ionic cordova plugin add PATH/TO/NEW/SUNMI/PRINTER/cordova-plugin-sunmi-inner-printer...

> @gayu1712 > > 1. convert your html page into bitmap, see https://stackoverflow.com/questions/21214620/render-html-text-to-bitmap-using-javascript-without-serverside-code > 2. use the following to print the bitmap image as follows: > > sunmiInnerPrinter.printBitmap(YOUR_BITMAP, width, height,...

> You need to convert the sample code from her @tmalbonph I get an error in this line " ctx.drawHTMLText(...html here...);" as does not exist on type , i want...

> @gayu1712 You need to convert the stackoverflow code into typescript form to use it @tmalbonph I can't get it, i try that but i dono how to do correctly,...

> @gayu1712 On my latest project, I am using this modified plugin here https://github.com/tmalbonph/cordova-plugin-sunmi-inner-printer to print ticket for booking services and been using printBitmap() to print my client logo; using...

> @gayu1712 I am sorry. I can't do that. It was already own by my client ;-) @tmalbonph can u explain me how u change that code to .ts format