Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://395149]
help
Chatterbox?
[marto]: well, it's the first I've heard of it at least
LanX rofl ... newspaper published article with depressing photos titled "where people voted for brexit" ... one reader commented "change the caption to Berlin" and nobody would disagree xD
LanX so true. ...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-12-12 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (335 votes). Check out past polls.

    Notices?