Discussion:
Absolute name of IP Printer
(too old to reply)
j***@gmail.com
2005-08-03 18:34:31 UTC
Permalink
I am using the PrintDocument object in .NET to change the default
printer and print to the following IP printer. The correct printer
drivers are installed. When I try to print, I get the "Invalid
Settings" error message.

PrintDocument printer;
printer.PrinterSettings.PrinterName="http://10.12.58.248/Lexmark Optra
T614"

If I install a printer named "Lexmark Optra T614" and set the default
printer to the following it works fine.

printer.PrinterSettings.PrinterName="Lexmark Optra T614";

I don't want to have to install a massive amount of printer names for
my application but just the drivers and I should be able to push a
print job to any network printer just by specifying the absolute name.

Is the absolute name in the correct format?

thanks for any help with this.
Aaron Wolski
2005-08-08 04:55:01 UTC
Permalink
This would make more sense to me:
PrintDocument printer;
printer.PrinterSettings.PrinterName="\\10.12.58.248\Lexmark Optra T614"

After all, you are trying to access a device by a remotely shared port, not
using the HTTP protocol as your attempt suggests.

Cheers,

Aaron.
--
Aaron Wolski
IT Consultant
Sentient Systems, AUS
(http://www.sentsys.com)
Post by j***@gmail.com
I am using the PrintDocument object in .NET to change the default
printer and print to the following IP printer. The correct printer
drivers are installed. When I try to print, I get the "Invalid
Settings" error message.
PrintDocument printer;
printer.PrinterSettings.PrinterName="http://10.12.58.248/Lexmark Optra
T614"
If I install a printer named "Lexmark Optra T614" and set the default
printer to the following it works fine.
printer.PrinterSettings.PrinterName="Lexmark Optra T614";
I don't want to have to install a massive amount of printer names for
my application but just the drivers and I should be able to push a
print job to any network printer just by specifying the absolute name.
Is the absolute name in the correct format?
thanks for any help with this.
Loading...