Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Raw Data to Printer on Win XP

by BrowserUk (Pope)
on Sep 29, 2004 at 21:51 UTC ( #395149=note: print w/replies, xml ) Need Help??

in reply to Raw Data to Printer on Win XP

I don't think there are any modules available to do this, but if you are prepared to drop to using Win32::API (or Inline::C or XS), then it is fairly simple to do using native calls.

The code you would need is documented here.

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: Raw Data to Printer on Win XP
by dvergin (Monsignor) on Sep 29, 2004 at 22:51 UTC
    Hmmm... "it is fairly simple" for some definition of 'simple' involving 55 lines of example code. (Not all of which may be neccessary to my current purpose.)

    That's a little more work than I was hoping for, but I suppose I could get invested in doing that with Win32::API under the heading of "write once use many".

    But sheesh! All I want to do is squirt a few lines of text at the printer. Someone please take me back to linux and:

          echo "Hello World!" | lpr -oraw

    But anyway, thanks for the lead. If nothing more straight-forward comes to light. I'll probably end up using this approach.     Much gnashing of teeth is heard...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://395149]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2021-01-16 11:23 GMT
Find Nodes?
    Voting Booth?