On Thursday 02 January 2003 07:14, Mundell, R. \(Ronald\) wrote: > Good Day All > > does any body know how to print a page out of Perl > > Thanks > > Ronald I have used a method where I created an html page in perl and instead of printing it to the user, sent it to a file. The file I then send to another program that I found on the internet called html2ps. The result of this (a postscript file) is then sent to a printer.
Included is some of the code from my perl script. ... print REPORT "</BODY> </HTML>"; close (REPORT); @error1 = system("/usr/local/bin/html2ps /var/www/database/backflowletter.html > /var/www/database/backflowletter.ps"); if (@error1 = 0) { print "<H3>Postscript Print file converted successfully!</H3>"; @error2 = system("lpr -Plex1650 /var/www/database/backflowletter.ps"); if (@error2 = 0) { print "<H3>Postscript Print file spooled to Printer lex1650 successfully!</H3>"; } sleep 5; } } _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs