Can someone point me to some documentation on how to use the printer using ruby 1.9.2 or WxRuby?
on 2011-05-06 00:35
on 2011-05-06 04:34
On Fri, May 6, 2011 at 5:40 AM, Ann Maybury <ann.maybury@gmail.com> wrote: > Can someone point me to some documentation on how to use the printer using > ruby 1.9.2 or WxRuby? > > what os do you use? if it's linux, simply system("lpr", filename) or raise "lpr failed" should do the trick
on 2011-05-06 08:40
On 05/05/11 22:40, Ann Maybury wrote: > Can someone point me to some documentation on how to use the printer > using ruby 1.9.2 or WxRuby? > For the content (text, images, geometric figures) that is to be printed, a printer is a DeviceContext (DC) that is drawn to in the same way that wxRuby draws to screen. Have a look at the drawing classes (wxDC). For controlling the printer (choosing which one to use, choosing paper & orientation) there is a set of Printing classes. http://wxruby.rubyforge.org/doc/#printing There is an example in the distribution in samples/printing/printing.rb which shows both these aspects alex
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.