473,786 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

connect to printer problem

Hello all,

I have an a bit strange printer and I would like to connect a C# program
running on my computer to the printer. I know that the printer can be
connected by LAN (TCP/IP protocol, 10/100 Base-T) but I am not quite sure
of its meaning. I have not seen anything about that the printer could be
connected by a specific port. Could someone please tell me if I can connect
the computer to the printer via the Internet and how I could do this job?

Apologies for my English,
Thanks in advance.
Vicente.

Oct 26 '07 #1
2 2536
Hello, Vicente!

AFAIR network printer can be connected directly to the network and have its
own IP and port.

Also printer can be connected to the computer, that has IP address on the
network.

You can read more about printing here
http://www.devarticles.com/c/a/C-Sha...Using-C-sharp/ and
here http://support.microsoft.com/kb/322091

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Fri, 26 Oct 2007 12:01:55 +0200:

VGHello all,

VGI have an a bit strange printer and I would like to connect a C#
VGprogram running on my computer to the printer. I know that the
VGprinter can be connected by LAN (TCP/IP protocol, 10/100 Base-T)
VGbut I am not quite sure of its meaning. I have not seen anything
VGabout that the printer could be connected by a specific port. Could
VGsomeone please tell me if I can connect the computer to the printer
VGvia the Internet and how I could do this job?

VGApologies for my English,
VGThanks in advance.
VGVicente.

Oct 26 '07 #2
Hi Vadym,

I typed http://192.168.2.4/ in the domain and then I obtained info about the
printer (the machine produces labels)

TCP/IP status
IP address : 192.168.2.4(DHC P)
Subnet Mask : 255.255.255.0
Gateway addr: 192.168.2.1
DHCP Server : 192.168.2.1
Lease time : 172800sec.
WINS server(Pri.): 0.0.0.0
WINS server(Sec.): 0.0.0.0
NetBIOS Scope ID :

But I think I need a port which connect from my PC (PC and printer are in
the same local network). Next I must send and receive ASCII messages to and
from the printer from the PC.

Many many thanks
Vicente.
"Vadym Stetsiak" <va*****@gmail. comescribió en el mensaje de noticias
news:ON******** ******@TK2MSFTN GP02.phx.gbl...
Hello, Vicente!

AFAIR network printer can be connected directly to the network and have
its own IP and port.

Also printer can be connected to the computer, that has IP address on the
network.

You can read more about printing here
http://www.devarticles.com/c/a/C-Sha...Using-C-sharp/ and
here http://support.microsoft.com/kb/322091

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Fri, 26 Oct 2007 12:01:55 +0200:

VGHello all,

VGI have an a bit strange printer and I would like to connect a C#
VGprogram running on my computer to the printer. I know that the
VGprinter can be connected by LAN (TCP/IP protocol, 10/100 Base-T)
VGbut I am not quite sure of its meaning. I have not seen anything
VGabout that the printer could be connected by a specific port. Could
VGsomeone please tell me if I can connect the computer to the printer
VGvia the Internet and how I could do this job?

VGApologies for my English,
VGThanks in advance.
VGVicente.
Oct 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
22312
by: Patrick Herb | last post by:
Hello, I'm trying to print the content of a RichTextBox from my VB 6 app. What I want is that the CommonDialog shows up, the user selects a printer and the content of the RichTextBox prints to the selected printer. I'm not concerned about the text format. What I tried is something like this CommonDialog1.ShowPrinter
1
10962
by: Bruce Adams | last post by:
I am using VB6 SP6. I have an application that prints charts. Specifically, it prints line charts of plant process information nightly. The code is a mix of API calls and Printer methods. I am currently migrating to a new PC running XP. The charting application is hanging on a single line of code: Printer.Orientation = vbPRORLandscape It throws an error '484', "Problem getting information from the printer. Make sure printer is set up...
2
2687
by: Yong Pong | last post by:
I have some functionality that I am trying to implement and I cannot figure it out. What I am trying to do is make it so that a user goes to a web page, sees a printer, clicks on a hyperlink, and the printer gets installed on the end-user machine. Much the same as when you connect to a printer through the Start --> Run... by typing in a UNC path. For example: Entering \\printserver01\printer01 into the Run dialog will connect to the...
0
3667
by: James Griffiths | last post by:
Here is a report I've written about a printing problem that is being experienced by a particular company for whom I had developed a A97 system. After upgrading to Win XP and AXP, some printing problems have arisen. My investigations show that it is not related to the particular system I developed. but is affecting Access in general. So, has nothing to do with reports being set to print to a default printer (which they all are) or to a...
1
9936
by: David Trivette | last post by:
I was wondering if anyone could help me with a MS Access 2002 issue I'm having. Problem - I created a db in Access 97 which worked just fine for several years. In the db the user can generate reports straight to a printer after a query has run. The user of this db just got a new computer with Windows XP and Access 2002. Now when the user runs the report the following error message is displayed:
1
4451
by: akhosravi4703 | last post by:
I'm having a problem with an application I pushed out recently. First, some background The application was made with Access 97 (unfortunately I'm stuck with this older version for the moment) The app is compiled into an MDE on a network drive from which several users access it in one location I'm an entry-level programmer, so please frame your answers for less experienced =)
1
2366
by: groulder | last post by:
hi all, i have a problem with a network database that's used by a lot of people. people are finding, they will start the database, and if the mouse is moved over the print icon, the tooltip appears to show which printer it will print to as normal. this printer however is a printer that the user doesn't even have installed.
0
1434
by: mmcgee00 | last post by:
Hi, Currently, I am trying to get different service banner by connecting to different ports using python (code below). The versions I am working with are python 4.2.1 and fedora core 4. I am trying to reproduce a very small piece of nmap, since nmap has to get a port's banner in order to figure out the version. However, I haven't been entirely successful. *******************************************************
0
1422
by: Gunady | last post by:
Hi All, I have used ActiveX (written in C# 2.0) to render report and print it silently to printer. I have given up to use pure Javascript to do this. The code in ActiveX will connect to the Reporting Services and render the report and print it to the printer. The problem is when I establish connection to Reporting Services, I use DefaultCredential, and it throws exception "Unauthorized". The web application/report server is located at...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9496
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9961
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4066
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.