-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Description
Hello,
Recently I've installed node-printer module but it doesn't work and I don't know why :(
When I try to log Printer.list()
command (Get available printers list) it returns an empty array despite of the fact that I have a working printer and drivers installed.
I really want to use nodejs for document printring.
I'm curious to know exactly how this module works? Does it send file to the printing queue or communicates directly to the printer?
Is there any way just to send files to the printing queue through a standard OS command? I know that it is pretty simple to do for win and linux using python. Unfortunately it is not feasible for node yet. But I don't want to use python script in conjunction with node!
Does anyone use node-printer module? Do you need any specific settings or installation for this?
I know that node has an os module but it only returns information about the system. Is it possible to create some function for node similar to python's that will start a file with associated application by os?
For e.g. this is code that works perfectly in python:
import os
os.startfile("printme.txt", "print")
Is it possible to do the same with just node child_process?
- Version: 7.0.0
- Platform: Win 7 64-bit
- Printer: Brother HL-2130 series