|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Specific Network Printer
Is it possible to specify a specific network printer using the statement: "window.print()" ?
I'm looking for a solution for this problem. Local users are to print a form on a specific printer, but some dont know how to do that, and even worse, some forget to turn the printer choice back to their standard after printing... So the keep printing at this office. Therefore it would be nice if there was someway to auto(or at least highligt/select) choose the desired printer. And when printing is ordered the printer would go back to the usual default printer of that user. Hope someone can help me out :0) |
|
#2
|
||||
|
||||
|
There are no parameters for the 'print' method. (How would a web developer know the names/locations of peoples printers?!)
http://msdn.microsoft.com/library/d...thods/print.asp You can set the default printer by going into control panel -> printers. Right click the printer of choice and choose "Set as default printer". |
|
#3
|
|||
|
|||
|
I don't think Stumpy get it. You and I, dezzz, want to print to a network printer with a known UNC path or IP. (So Stumpy, that's how we know what printer we want to print to.)
I am investigating this issue as well. May have to use the vbscript method to do this if Javascript won't handle it. Thanks for the good question dezz. |
|
#4
|
||||
|
||||
|
I think Stumpy does get it, as he indicated by pointing out that there are no parameters for the print method. Javascript won't handle this for you, so you should probably go ahead and start looking into vbscript as an alternative.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Specific Network Printer |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|