Sounds like you'd have to write a C++ node addon that interfaces with the windows print API and expose it to node as a JavaScript API. Then when you deploy, include this binary addon pre-compiled along with node and your server code.
I doubt node will be able to talk to the printer out of the box unless windows exposes them using some tcp API to local processes. On Thu, May 17, 2012 at 9:51 PM, Tauren Mills <[email protected]> wrote: > I'd like to build a print server that receives jobs over the network and > can print them to an attached printer. We were thinking about utilizing > websockets to notify the print server that a job is ready, so node came to > mind. But it doesn't seem like node is the right tool for interfacing with > a printer. If anyone has ideas on how to do this, I'd love to hear them. > > I've been looking at projects such as node-qt and node-gui, but they don't > seem to support any printing features yet. > > Although we prefer to use linux or OSX for everything, these print servers > would be installed onsite at client locations. Besides the specific > printers we need to print to only have Windows drivers at this time, so we > will definitely need this to run on Windows platforms. > > Thanks for your thoughts. > > Tauren > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
