XP is just a number | |
PerlMonks |
Printing directly to a printerby merrymonk (Hermit) |
on Apr 08, 2005 at 14:58 UTC ( [id://446032]=perlquestion: print w/replies, xml ) | Need Help?? |
merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks I need to print directly to a printer connected to my PC. Somewhere on your site I found information that led me to believe this is done by a command of open(PRN, ">LPT1") - if the printer is connected to LPT1 of the PC being used or open(PRN, '>\\printserver\printershare') if the printer is connected to a printer on the network. Therefore I wrote the follwing code
Sadly this just treats the name in the open as a file therefore nothing is sent to the printer. What changes do I have to do so that I can print directly to the printer connected to my PC?
Back to
Seekers of Perl Wisdom
|
|