Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Net::Printer
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




Report this thread to moderator Post Follow-up to this message
Old Post
Brian Volk
03-30-05 01:56 AM


Re: Net::Printer
On 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>


Report this thread to moderator Post Follow-up to this message
Old Post
Steven Schubiger
03-30-05 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:52 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.