On 02/10/2014 02:00 PM, Lincoln Lemos wrote:
Yes, I want click on 'print' button and this send a job to a user's printer. (With no dialogs). Maybe i can make a function to click "Print Automatically", and send the jobs with no actions.


Uh, then tough luck! I don't think this is possible with any server-side code, at least not in the regular sense.

I think the most that you can do here is autostart a print dialog. That means doing something like window.print(); or iframeElement.print(); in frontend javascript. But it's not related to node. Also, the above will not automatically print, it will just open the users' print dialog - if they have any installed.

The problem is generally in that that the browser scripts cannot access hardware, and probably the browser itself can't access it by default.

It could possibly be done with some sort of browser extension, but I'm not sure about this.

In any case, it is nothing to do with node.js. Your server will probably have no access to the printer ports if it is not in a sort of a vpn or local network and having remote admin access to the users' computer. Which is probably not the case :)





2014-02-06 7:26 GMT-02:00 zladuric <[email protected] <mailto:[email protected]>>:

    That module looks like it is made node into a print server.

    What exactly do you mean, print from the frontend? Click on the
    'print' button? Where does this action print: to your printer
    attached to the node's server? Or to the users' printer?

    Because if it's the former, it's in the modules' examples and
    readme page. I'd use this module to discover printers on wakeup.
    Then once I get a request from 'frontend' to do some printing, use
    this module to send it a print job.


    If it's the later, then node is of no help, I think - unless
    you're doing something like node-webkit, which is a client side app.



    On Wednesday, February 5, 2014 7:57:15 PM UTC+1, Lincoln de Sousa
    Cunha Lemos wrote:

        How i can print automatically with node from front-end?

        I found a module (Ipp - internet print protocol ).
        This help me start a communication with the printer, but i can
        not do with this from front-end.

        Someone have any idea?

-- Lincoln Lemos
        *62 81998667 <tel:62%2081998667>
        *

-- -- 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]
    <mailto:[email protected]>
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:nodejs%[email protected]>
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en

    ---
    You received this message because you are subscribed to the Google
    Groups "nodejs" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to [email protected]
    <mailto:nodejs%[email protected]>.
    For more options, visit https://groups.google.com/groups/opt_out.




--
Lincoln Lemos
*62 81998667

*BIGO Design <http://bigodesign.com.br>

--
--
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

---
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/mV2DZWFjn2c/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


--
Zlatko

--
--
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

--- You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to