Absolute name of IP Printer

  • Thread starter Thread starter jaydfischer
  • Start date Start date
J

jaydfischer

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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top