in reply to Net::Printer Error

Could be a load og things.
Is the printer shared properly, or do you have to be logged in into the network to be able to print to the printserver?

You write port => 'IP_172.16.8.9', I've never heard of such a printerport. i expect to see there something like port => '515',

Can you print to the printer using the computer you're on?

etc.etc.

Update: You should find out the proper port the server is listening on, 515 was just an example

Replies are listed 'Best First'.
Re^2: Net::Printer Error
by gopalr (Priest) on Feb 24, 2005 at 09:10 UTC

    Hi jbrugger

    I can able to print the file in any application, but problem only occur in script.

    when I changed the port to 515 the following erros is showing:

    Use of uninitialized value in sprintf at e:/Perl/site/lib/Net/Printer. +pm line 742.