Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Raw Data to Printer on Win XP

by BrowserUk (Patriarch)
on Sep 29, 2004 at 21:51 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://395149]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2025-02-07 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.