Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 romping around the Monastery: (12)
As of 2014-08-01 04:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls