Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
Welcome to AspAdvice Sign in | Join | Help

Select default printer (network printer)

  •  07-19-2007, 4:15 PM

    Select default printer (network printer)

    Hi all,

    I'm trying to create a simple application in ASP.NET to print receipts via a web page to the default printer.  If the default printer is a network printer, it doesn't work, but I can get it to work by using a specific printer name. (example below)

     dim prtr as new Printing.PrintDocument

    prtr.printersettings.printername = "\\servername\Printername"

     Be grateful for any ideas as to what I'm doing wrong !!!

     

    This is to be done server side, (VB, ASP.NET)

     

     

     

    Filed under: , ,
View Complete Thread