From: MonkeeSage Date: 2007-12-01T16:35:12+09:00 Subject: Re: Printing throught LPT1 On Dec 1, 12:47 am, Edgar Gonzalez wrote: > Jordan Callicoat wrote: > > On Nov 30, 9:55 pm, Edgar Gonzalez wrote: > >> Posted viahttp://www.ruby-forum.com/. > > It depends on your OS for one thing. I'm not aware of a project that > > provides a uniform cross-platform API to printing for ruby (that > > doesn't mean there isn't one). The closest thing I know of is > > Gtk::PrintOperation from ruby-gtk [ > >http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3APrintOperation > > ]. > > > HTH, > > Jordan > > Well i am in windows, how could i do that? > -- > Posted viahttp://www.ruby-forum.com/. I'm not sure. I assume you could use the win32ole module that ships with ruby 1.8 [1], or perhaps one of the third-party win32 modules [2]. But I have no idea how. Maybe someone who knows about ruby + win32 can help (Daniel Berger?). You could also probably write a little C extension to call the windows API, but that may be more work than necessary. Sorry I can't be of more help. [1] http://www.ruby-doc.org/core/classes/WIN32OLE.html [2] http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_minor=Win32 Regards, Jordan