Electron: How to print receipts with thermal printers

  Рет қаралды 34,392

Hubert Formin

Hubert Formin

3 жыл бұрын

How to print receipts with thermal printers using electron-pos-printer plugin
github.com/Hubertformin/elect...

Пікірлер: 46
@laser1915
@laser1915 2 жыл бұрын
If you are facing any problems with timeout , especially with electron 12 and above go to node modules->electron-pos-printer -> dist -> pos-printer, add "contextIsolation:false" where the new window is being created
@hformin
@hformin Жыл бұрын
You don't need to do this anymore, you can just upate to the latest, version. The latest version is compatible with the latest version of electron v20.x.x
@dodzlugod1586
@dodzlugod1586 2 жыл бұрын
Nice video men... thanks for sharing... ;)
@JoonhoKim-gg7lz
@JoonhoKim-gg7lz 2 жыл бұрын
Thank you for creating this great module. Please Help me. How can I make this package work in react & typescript environment?
@gerardorecendiz7146
@gerardorecendiz7146 3 жыл бұрын
gracias me sirvio mucho
@leandroroman5523
@leandroroman5523 3 жыл бұрын
Hola si te sirvió me podrías ayudar, a mi no me imprime
@yasarmuhammed4359
@yasarmuhammed4359 2 жыл бұрын
Thanks
@edustreamimg
@edustreamimg 3 жыл бұрын
Hello buddy, does it work in react-native or react app?
@alwise
@alwise 3 жыл бұрын
Hi, the app keeps crushing after successful printing.
@fisicoprogramador
@fisicoprogramador Жыл бұрын
can I use any html template? with css
@ningwang5648
@ningwang5648 2 жыл бұрын
wonderfull video , whould you please continuer the second part?
@hformin
@hformin Жыл бұрын
Yes, I will. I have made some updates to the package. I will make a video talking about it
@moulicvr
@moulicvr 3 жыл бұрын
can someone help me with printing from web to pos printer using nodejs please.
@Buddhixmen
@Buddhixmen 3 жыл бұрын
can you tel me how open cash drawer separately?
@bunnyngim2758
@bunnyngim2758 2 жыл бұрын
Thanks q so much..But I try to from Mac..It got TIMEOUT..Please advise
@superkass
@superkass 3 жыл бұрын
hello Hubert, could you help with auto-detecting the printer connected then use the name in the printerName method. I am trying hands on your work but can only specify one printerName:'ESPSON', but wish it could have something as printerName: connectedPrinterName ,
@Winenance
@Winenance 3 жыл бұрын
use the library electron print pos
@superkass
@superkass 3 жыл бұрын
@@Winenance ok I have created a public repository github.com/Profnird/nird-thermal-pos-printer. but with this you would have to state the printer name then the printing is carried out. check that out and see. we want to make it be able to auto-detect the printer
@nawazishali274
@nawazishali274 Жыл бұрын
I'm facing the problem while rendering type image and placed url it's not accepting url and that's error in console plz suggest me
@ratefinanaharytoky1335
@ratefinanaharytoky1335 3 жыл бұрын
Can you explain the pageSize option? The documentation just puts it in an example without giving any how or why.
@hformin
@hformin Жыл бұрын
This is the size content of the printed page, You can set predefined values like; 'A4', 'A5' etc or set pass an object of width and height. Take a look at the docs, I updated the package
@chandruloganathan3725
@chandruloganathan3725 2 ай бұрын
I am getting the below error when I install this package and imported it node:internal/modules/cjs/loader:410 throw err; ^ Error: Cannot find module 'C:\Users\CHANDRU LOGANATHAN\Desktop\Live-Project\CLT\testing-application\printer ode_modules\electron-pos-printer\dist\index.js'. Please verify that the package.json has a valid "main" entry at tryPackage (node:internal/modules/cjs/loader:402:19) at Module._findPath (node:internal/modules/cjs/loader:644:18) at Module._resolveFilename (node:internal/modules/cjs/loader:1012:27) at Module._load (node:internal/modules/cjs/loader:872:27) at Module.require (node:internal/modules/cjs/loader:1092:19) at require (node:internal/modules/cternal/mternal/modules/cjs/loader:1205:14) at Module._extensions..js (node:internal/modules/cjs/loader:1259:10) at Module.load (node:internal/modules/cjs/loader:1068:32) { code: 'MODULE_NOT_FOUND', path: 'C:\\Users\\CHANDRU LOGANATHAN\\Desktop\\Live-Project\\CLT\\testing-application\\printer\ ode_modules\\electron-pos-printer\\package.json', requestPath: 'electron-pos-printer' } Node.js v19.1.0 [nodemon] app crashed - waiting for file changes before starting...
@baatui314
@baatui314 3 жыл бұрын
would this work if i access with mobile device like android
@nhermuhlen
@nhermuhlen 3 жыл бұрын
its not printing if i push on print
@stephenkomu1476
@stephenkomu1476 3 ай бұрын
So I am still getting errors while printing
@Truethought689
@Truethought689 Жыл бұрын
Can u make vidio how I can do in vue js?
@dinobudic4492
@dinobudic4492 Жыл бұрын
I managed to print on epson via usb, but the problem is sometimes printer just stop working. I can see queued jobs but it’s not printing them. Any idea how to fix that on windows? Seems like spooler get stuck after one print.
@firlytaufikurohman6922
@firlytaufikurohman6922 5 ай бұрын
i got same problem and still dont know how to fix that
@dodzlugod1586
@dodzlugod1586 2 жыл бұрын
Is that plugin compatible on other printers like Epson TM-U220? What node version to run this app?
@hformin
@hformin Жыл бұрын
This works wiht the recent version of electron
@asimimam2289
@asimimam2289 2 жыл бұрын
what is electron ?
@mohamedabdelmagid3014
@mohamedabdelmagid3014 2 жыл бұрын
TimeOut :(, How to solve this ?? I added "contextIsolation:false" to the pos-printer file, but still not working.
@oscarcardoso7599
@oscarcardoso7599 2 жыл бұрын
Could you resolve it?
@devToolBox26
@devToolBox26 7 ай бұрын
this works for me. Thanks
@samuelcantos4169
@samuelcantos4169 Жыл бұрын
sirve para native?
@miansami2588
@miansami2588 3 ай бұрын
can we send print commands to multiple printers with silent printing ?
@akadeadahot7067
@akadeadahot7067 Ай бұрын
Hey did u find solution for that ? Multiple printer with silent printing on pos and also cut paper after completing printing
@ahmedsarmoum2956
@ahmedsarmoum2956 3 жыл бұрын
how to fix probleme in production mode?
@hformin
@hformin Жыл бұрын
What issue are you experiencing?
@AdityaSingh-yb6cc
@AdityaSingh-yb6cc Жыл бұрын
this program which language in use plz
@hformin
@hformin Жыл бұрын
Typescript or JavaScript
@ChetanSharma-jy8om
@ChetanSharma-jy8om 2 жыл бұрын
And Html content is not visible
@ChetanSharma-jy8om
@ChetanSharma-jy8om 2 жыл бұрын
I got TimeOut Error
@zagdog92
@zagdog92 Жыл бұрын
is dead....
@zagdog92
@zagdog92 Жыл бұрын
24/11/2022 is dead this package
@devToolBox26
@devToolBox26 7 ай бұрын
not yet dead. I used it now.
Make Printers Great Again
19:46
node.js
Рет қаралды 19 М.
Каха ограбил банк
01:00
К-Media
Рет қаралды 2,5 МЛН
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 12 МЛН
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 43 МЛН
Stop Doing this as a React Developer
12:27
CoderOne
Рет қаралды 159 М.
Print in React| Print with React| How to print in React.js
4:05
Easy Coding
Рет қаралды 44 М.
Label everything with this Thermal Label Printer
11:59
SciCynical Inventing
Рет қаралды 2,5 М.
How to create a basic Electron app with Vite and React
12:57
Ehren Grenlund
Рет қаралды 62 М.
POS print direct to printer from all web browsers without plugin
14:00
Printing with JavaScript made easy | Print.js
14:45
Kritika & Pranav | Programmer Couple
Рет қаралды 26 М.
Cracking Websites with Cross Site Scripting - Computerphile
8:34
Computerphile
Рет қаралды 1,5 МЛН
A AMIZADE DAS GÊMEAS É MUITO ENGRAÇADO
0:10
Teen House
Рет қаралды 16 МЛН
Try this 🤣  #funny #trending
0:14
Dung ABC
Рет қаралды 28 МЛН
Аттракцион сломался. Люди застряли головой вниз... 😱
0:21
She ruined my dominos! 😭 Cool train tool helps me #gadget
0:40
Go Gizmo!
Рет қаралды 45 МЛН
Дочь помогла Отцу 🥹❤️ #shorts #фильмы
0:33