Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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


Comment on Re: Raw Data to Printer on Win XP
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2015-07-03 13:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls