-
Notifications
You must be signed in to change notification settings - Fork 246
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
Reliance on electron-printer/node-printer #209
Comments
I'm using it this way, I just had to do a few extra steps because when I installed the node-printer library I couldn't find it in the node modules folder. I used it with that "node-printer" because if I used another one, the driver couldn't find two methods that I don't remember exactly which ones, I think they were getPrinter() and directPrint(), don't believe me but it was something like that, so I used "@thiagoelg /node-printer" because it did work, but when executing the Electron project it gave me an error, so I had to install "Desktop development with C++". I don't know or believe that what I did is the best practices but it solved the problem for me. After installing the VS I did this npm install --save-dev electron-rebuild I tried until "electron-rebuild" passed the "node-printer" correctly in the end I got some errors but I didn't pay much attention to them and when I ran the electron project "node-printer" I no longer got the "self error" and I was able to use the "node-thermal" |
Thanks for the advice @Wolyo , I tried a similar method but got errors when trying to package the project which i couldn't resolve, but the dev env worked fine. I found another workaround today which is going to suit me better: |
Maybe we could build a new C++ Node.JS library for local printers across the 3 platforms. Printer are ancient at this point and finding reference code wouldn't be too hard. I am looking to do things over the network primarily but testing has been a pain since I use a wired one. |
@mattkrins An awesome workaround! Thank you!! It works! |
This library works brilliantly for printing to networked printers, however I would like to print to a local printer too, but due to the reliance on electron-printer/node-printer this is not possible as these libraries are dead/broken and pull requests are ignored.
Is it possible to print locally without electron-printer/node-printer?
The text was updated successfully, but these errors were encountered: