Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

connect to a network printer via script

Posted on 2004-04-12
6
Medium Priority
?
251 Views
Last Modified: 2013-11-15
Hallo experts!
I'd need a script from which users can connect to a network printer.
Actually there will be a HTML page with many hyperlinks (and many similar scripts), one for each network printer: I wish users could just choose the needed printer, click on the link and get the job done by the script.

                               thanks for your help!

                                                                   Akelaxvi
0
Comment
Question by:akelaxvi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 10815203
You cannot set the print options from script it has to be done with the printer dialog that comes up when they print by either clicking the print icon or using a window.print() instruciton in script.  Might be possible with activeX, but not with conventional web page scripting.

Cd&

0
 

Author Comment

by:akelaxvi
ID: 10817973
Well, I don't want to set the print options of a network printer; it would be enough to connect to it.
I found something similar here:

http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20621146.html?query=printer+via+hyperlink&searchType=all
.
but that's not definitive.
I'd like the ActiveX control method or a server side script (ASP.net?).
Any working solution?

                                                                           thanks

                                                                            Akelaxvi
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 1000 total points
ID: 10818044
This is the activeX most commonly associated with printing.  Take a look and see if it is what you need :

http://www.meadroid.com/scriptx/index.asp

Cd&
0
 

Author Comment

by:akelaxvi
ID: 12929803
Hello,
here what I found (tested with IIS 6.0, XP home and Pro):

1) create a simple .BAT or .CMD script like: start \\server1\printshare1
2)put that file into a real or virtual directory of the web site
3) hyperlink that file from the webpage as usual: href="/directoryname/scriptname.BAT (or .CMD)
4) in order to get the script executed when users click on it, into IIS open the properties window of the directory containing the script, choose HTTP headers, then MIME Types, then New and set: extension  =    .*  and MIME type =   application/octet-stream

Users need access right to the folder containing the script and manage printer right on the printer installed by the script.

Works for me, hope helps you!

Akelaxvi
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question