|
-
May 9th, 2006, 08:59 PM
#1
Thread Starter
New Member
How to locate a network printer
How to locate a network printer ? so PHP script that execute this module can print the documents ?
thx in advance
-
May 10th, 2006, 01:39 AM
#2
Re: How to locate a network printer
That can't be done with PHP. All you can do is prodivde a button in HTML that displays the print dialog.
-
May 10th, 2006, 01:46 AM
#3
Re: How to locate a network printer
 Originally Posted by fella_amore
How to locate a network printer ? so PHP script that execute this module can print the documents ?
thx in advance
I have, give or take the odd doubt, absolutely no idea what you are talking about. Perhaps you could repeat your query with an increased level of depth and verbosity so that we can better assist.
-
May 11th, 2006, 11:41 PM
#4
Thread Starter
New Member
Re: How to locate a network printer
I'm sorry about my previous post...i'm just looking for a solution to find a network printer using VB function thx
-
May 12th, 2006, 10:24 AM
#5
Re: How to locate a network printer
Even if it is a network printer, I believe you still have to have it installed on your PC before you can use it.
That being said, listing out what printers are installed on your PC with VB is very easy.
-
May 15th, 2006, 07:19 AM
#6
Lively Member
Re: How to locate a network printer
Can't you send some kind of signal to all your network devices and when you get a specific response that you are able to distinguish printers from computers and so on?..
Must be possible I think but how?
Find a router, send a broadcast and see what happens? something like it?
There is an easy way, there is a hard way and there is My way of doing things!
-
May 15th, 2006, 11:38 PM
#7
Re: How to locate a network printer
 Originally Posted by darktown
Can't you send some kind of signal to all your network devices and when you get a specific response that you are able to distinguish printers from computers and so on?..
And to kill a mosquito, burn the house down. You could end up transferring many thousands of packets in a large network. Network admins frown on that kind of promiscuity.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
May 22nd, 2006, 04:32 AM
#8
New Member
Re: How to locate a network printer
I tend to agree with what was said on network traffic usage. You would be better off if you keep a list of the network printers available in a file (stored centrally) and you then reference that file if you want to present a list of printers to the user.
You can then periodically (say once every week) update the central file.
You can get a list of network printers programatically, but this depends on what type of printers you have installed. If the network printers have an IP address and your IP range is say 10.10.0.1 to 10.10.0.100, and the printers use a standard print server type of connection, for each IP you can try and connect to the printer on port 9100 using the winsock component.
If the printers you have are shared under windows, you need to first get a list of PC/PrintServer names from your network using the net view command and placing the contents in a text file. Then, read the text file and for each PC/PrintServer entry, run net view PrintServer >>prninfo.txt. You can sieve prninfo.txt file to find what printers are shared.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|