JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old November 6th, 2003, 03:09 AM
dezzz dezzz is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 1 dezzz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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)

Reply With Quote
  #2  
Old November 6th, 2003, 06:46 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
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".

Reply With Quote
  #3  
Old November 24th, 2003, 08:26 AM
kramik kramik is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 1 kramik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up Good question dezzz

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.

Reply With Quote
  #4  
Old November 24th, 2003, 08:55 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Specific Network Printer


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway