Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: Raw Data to Printer on Win XP

by aquarium (Curate)
on Sep 29, 2004 at 21:01 UTC ( #395139=note: print w/replies, xml ) Need Help??

in reply to Re: Raw Data to Printer on Win XP
in thread Raw Data to Printer on Win XP

question is how to print raw data to printer -- NOT how to re-direct a port!!!! in the plethora of options for most decent printer drivers, you get an option to print RAW data, so that's accessed through the printer's control panel. then it's only a matter of actually sending the output to the printer...which i'm not too sure on.

Replies are listed 'Best First'.
Re^3: Raw Data to Printer on Win XP
by jfroebe (Parson) on Sep 29, 2004 at 21:50 UTC


    I think what you are looking for is for a perl module or code that allows you to print to the Windows Print API ... you can do so using Win32::Printer. You will also want to use Win32::Printer::Enum to determine which printers are available.

    hope this helps

    Jason L. Froebe

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

      I was quite hopeful when I first ran across Win32::Printer during the course of this current quest. In fact, I went ahead and installed it for use later with other projects.

      But in reading and re-reading the docs. And in re-reading them yet again before responding to your suggestion just now, I can find no way to use that module to send a raw string as-is directly to the printer. After my eyes got "scrolled-out" I finally tried a text search for 'raw' and 'direct' in the pod. But no good.

      I'd love for you to point out the option for that module I have missed that allows such a thing.

Re^3: Raw Data to Printer on Win XP
by terra incognita (Pilgrim) on Sep 29, 2004 at 22:14 UTC
    Since the OP has "brushed up on MODE" which alows you to re-direct printer ports I figured it was on topic. You can often also FTP directly to the newer printers. Putting a file will cause a the printer to print it, it will also bypass the print server queue. :-)
    Of course that may not solve you problem either.
    Just my 2 cents.
      Your response was on point and I thank you for it. But see my reply to yours (beginning "Well, yes. I had thought of that..." explaining that the printer is at USB002 attached directly to this laptop. And note the rest of that sub-thread including the exchange with BrowserUk.

      Is there a MODE or NET USE command (perhaps in combination with other settings) that would establish redirection of LPT1 (which currently seems to be unknown on this system) to USB002.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2021-09-24 03:18 GMT
Find Nodes?
    Voting Booth?

    No recent polls found