473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

How does one goe about connecting to a printer via C#?

I am in charge of the printers in my computer lab. There are two of them in two separate rooms. My task is to use C# to give the ability to the computers to connect to the closest printer to that computer as soon as someone logs into that computer.
Feb 4 '11 #1
1 1878
johny10151981
1,059 1GB
Find the answer about "what does it mean by Closest Server".

In local network there is no such thing called closest server. All are closer. All requires same cost. But If you want you can set so called close(by means of distance from user chair) then you can set default printer which seems close to the certain computer. If you want to control it remotely then you develop a client/server application. your machine will be server and the user's machine will be client.

In your machine you will set the proper Printer Path / Address in your server. Client will request the server and learn which is chosen as her closest printer and set that printer as its default printer.

Or let me know what else is in your mind
Feb 4 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: pmud | last post by:
Hi I need to connect an existing application to an SQL database. How to go about doing that coz its an application created by a third party & I dont even know how or in what programming language...
2
by: Paul | last post by:
I am hoping that some intelligent user in this group will be able to solve a major problem I'm having. I have a report in Access 97 SR2, that is set up as LEGAL, LANDSCAPE. But, every time I...
2
by: alan | last post by:
I'm now using vb.net to write a POS system with a epson thermal printer. I use the ocx that provided by Epson to drive the printer. It's not the problem if I just using 1 computer vs 1 thermal...
3
by: Alejandra Parra | last post by:
In my code, I print a dataSet ' get grid's PrintDocument object Dim pd As System.Drawing.Printing.PrintDocument pd = flexgrid.PrintParameters.PrintDocument() ' set up the page (landscape, 1.5"...
3
by: Mika M | last post by:
Hi all! I have made an application for printing simple barcode labels using PrintDocument object, and it's working fine. Barcode printer that I use is attached to the computer, and this...
0
by: kevin | last post by:
I need to connect to a shared printer on a LAN using .net code. I can connect to the printer by using explorer; search for the computer the share is on, then by click-clicking on the shared printer...
13
by: ATJaguarX | last post by:
I have a Zebra S500 and multiple S600 label printers. http://www.zebra.com/id/zebra/na/en/index/products/printers/industrial_commercial/s600.html They are currently being used in our legacy...
1
by: lesperancer | last post by:
I've got a text box, width = 4.25", font = Sans Serif, font size = 8 for a 'memo' field 1) I enter the following data as four lines TAG : Glycol transfer Fluid : Glycol S.G. : ?? ...
2
by: Morten Fagermoen | last post by:
Hi! What is the easiest way to connect (a network printer) and set a default printer from a VB.NET 2005 application? Regards Morten Fagermoen
0
by: Zebadunc | last post by:
I have a vb.net form that lists the shared printers in from a remote computer in a checklist box giving the shareName as the value for the user to select. I want to use the print server name and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.