Where to start if I want to print to

  1. Linux (CUPS) printers
  2. Windows printers

by
TheR

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Damjan R. wrote:
| 1. Linux (CUPS) printers
| 2. Windows printers

1.) The CUPS API documentation
2.) The Windows API documentation


Phillip G.
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

~ “If we wanted more leisure, we’d invent machines that do things less
efficiently.” -Calvin’s dad
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkghZUYACgkQbtAgaoJTgL8JNQCdFW/k+TCH/KmG59oSPkl/ogHd
I4oAn0RG8pd6qaNFseh1MLB66b+6rgZQ
=g6Ak
-----END PGP SIGNATURE-----

Phillip G. wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Damjan R. wrote:
| 1. Linux (CUPS) printers
| 2. Windows printers

1.) The CUPS API documentation
2.) The Windows API documentation

Seriously. I thought this would be simplier.

Is there no library which would simplify drawing pixels and fonts and
pictures etc. and send result to printer queue?

by
TheR

Phillip G. wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Damjan R. wrote:
| Seriously. I thought this would be simplier.
|
| Is there no library which would simplify drawing pixels and fonts and
| pictures etc. and send result to printer queue?

Beats me. My mind-reading powers are in the shop for maintenance at the
moment, so I have no clue what your problem is.

Also, it might be a good idea to use search.yahoo.com to answer your
question? Or this new kid on the block, google.com?

A general question gets a general answer, since more isn’t possible
(since, as aforementioned psychic power is not available currently).

So why do you answer if you are on maintenence.

And no searching friends don’t have any goooood answers. At least not on
first few pages.

by
TheR

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Damjan R. wrote:
| Seriously. I thought this would be simplier.
|
| Is there no library which would simplify drawing pixels and fonts and
| pictures etc. and send result to printer queue?

Beats me. My mind-reading powers are in the shop for maintenance at the
moment, so I have no clue what your problem is.

Also, it might be a good idea to use search.yahoo.com to answer your
question? Or this new kid on the block, google.com?

A general question gets a general answer, since more isn’t possible
(since, as aforementioned psychic power is not available currently).


Phillip G.
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

~ “I don’t understand this! Not a single part of my horoscope came
true! … The paper should print Mom’s daily predictions. Those sure
come true.”

  • -Calvin
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.8 (MingW32)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkghgZsACgkQbtAgaoJTgL8LPQCbBlQsInxzIxmbnl4aEVm55GoR
KzsAnRPQANAQE24o5QJMMGT0ySgd2Dls
=qQza
-----END PGP SIGNATURE-----

Damjan R. wrote:

  1. Linux (CUPS) printers
  2. Windows printers

You could look into the cross-platform GUI toolkits, for example wxRuby,
FxRuby, QT or GTK. Some of these should should provide abstractions for
writing to a printer. wxRuby for example provides a variety of classes
which abstract the native printing frameworks on Mac, Linux and Windows:

http://wxruby.rubyforge.org/doc/htmleasyprinting.html (very simple to
use)
http://wxruby.rubyforge.org/doc/#printing (full control)

a