>> You said, in response to Colin's question, that you wanted to send it to 
lpt1 port on the server.  Now you're saying that it is to be sent to the 
lpt1 port on the client?

You never said that, I misread it - lol, sorry.

Steve

On Wednesday, 5 September 2012 10:00:27 UTC+1, sjm wrote:
>
> Hi,
>
> You said, in response to Colin's question, that you wanted to send it to 
> lpt1 port on the server.  Now you're saying that it is to be sent to the 
> lpt1 port on the client?
>
> This would not be possible via HTTP, the server cannot take control of the 
> client.  The best you could achieve (IMHO) is to render the text file to 
> the browser, and use JavaScript to open the browser's print dialogue.
>
> If this is a Ruby question rather than a Rails question, then you would 
> need to write a server and a client application with the client requesting 
> the file from the server using a standard (or your own proprietary) 
> protocol, once the received it [the client] could open the port and send 
> the received text file to it.
>
> I hope that this helps.
>
> All the best,
>
> Steve
>
> On Tuesday, 4 September 2012 12:15:28 UTC+1, Ruby-Forum.com User wrote:
>>
>> Thanks, but i want send text file from server to client (lpt1 port), 
>> it's possible? 
>>
>> -- 
>> Posted via http://www.ruby-forum.com/. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/orIeRSP-G-YJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to