Code Comments
Programming Forum and web based access to our favorite programming groups.I using the program below to send file to printer.... It's printing a blank page and giving the error below. Anyone have any ideas? C:\brian\Perl>perl send_to_printer3.pl Use of uninitialized value in sprintf at C:/Perl/site/lib/Net/Printer.pm line 742. Use of uninitialized value in sprintf at C:/Perl/site/lib/Net/Printer.pm line 742. ---begin use strict; use warnings; use Net::Printer; my $lineprinter = new Net::Printer ( filename => "C:/brian/test/12345.html", printer => "HP4100-IS", server => "hp-exch", port => "515", lineconvert => "YES" ); my $result = $lineprinter->printfile(); ---end Thanks! Brian Volk HP Products 317.298.9950 x1245 <mailto:bvolk@hpproducts.com> bvolk@hpproducts.com
Post Follow-up to this messageOn 29 Mar, Brian Volk wrote: > I using the program below to send file to printer.... It's printing a > blank page and giving the error below. Anyone have any ideas? > C:\brian\Perl>perl send_to_printer3.pl > Use of uninitialized value in sprintf at > C:/Perl/site/lib/Net/Printer.pm line 742. > Use of uninitialized value in sprintf at > C:/Perl/site/lib/Net/Printer.pm line 742. Net::Printer docs excerpt: Please note that this module only talks to print servers that speak BSD. It will not talk to printers using SMB or SysV unless they are set up as BSD printers. CUPS users will need to set up B<cups-lpd> to provide legacy access. ( See L</"Using Net::Printer with CUPS"> ) -- Steven Schubiger <steven@accognoscere.org>
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.