473,385 Members | 1,757 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,385 software developers and data experts.

Direct print to LPT1

In VB

Open "Lpt1" For Output As #1
PRINT #1 "xxx"
Close #1

but how about in C# ?
anyone help ?

May 4 '06 #1
1 4743
<ca******@gmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
In VB

Open "Lpt1" For Output As #1
PRINT #1 "xxx"
Close #1

but how about in C# ?
anyone help ?


1) Launch your Internet browser (e.g. IE, FireFox, Netscape etc)

2) Go to http://www.google.com

3) Enter the text below in the box:

"C#" LPT1 direct

4) Hit the button
May 4 '06 #2

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

Similar topics

2
by: Nikolay Seksenov | last post by:
I am developing VB.Net Web application to be used in our department intranet. I created a web-based report using Crystal Reports. I would like to print the report from the web server instead of...
0
by: Nick | last post by:
Hi guys, I have an old VB app that writes just fine to an old LPT printer. I do this using: Open "LPT1" .... Now, the app is changing and I have to do the same thing in .NET. I found at...
4
by: Salty Dog | last post by:
No error or any feedback that I can work with. Code: set objShell = Server.CreateObject("WScript.Shell") objShell.Run "%comspec% /c NET PRINT \\Garchive\ISLaser >c:\WUTemp\Printer_Status1.txt",...
1
by: Allan | last post by:
I open and write LPT1 as file with standart file i/o functions. But it sends directly to the printer on win98 without spooling.But when I send something from command prompt (dos) to LPT1 it is...
0
by: Pete Petersen | last post by:
We are trying to send the results page to a Zebra LP2844 Printer with 4" x 2" Thermal Transfer Label loaded on the network. The share is \\server01\ups and it is installed on the Web Server that...
0
by: Tessa | last post by:
Is there any security reason why you cannot print to a network printer from ASP.NET under IIS6 on Windows 2003 server? I'm using ASP.NET code to print to a server print queue using...
2
by: Peter Rohlfs | last post by:
I'm trying to bring some code from an Access database into Visual Basic .net 2k3. The access code goes directly to LPT1 as follows ---------------------------- Open "lpt1" For Output As #1 '...
1
by: Luis Ramos | last post by:
Hello, In VB6 i use to print text to the lpt1 port, because of matricial printers and i use to do this: open "lpt1:" for output as #1 print #1, "some text" close #1 my question is: How can i...
27
by: tomhr | last post by:
I have a Borland Turbo C++ compiler (though I never use the "plus-plus" part), copyright 1990. I use this compiler to write simple programs, one of which I am quite dependent on. A month ago, my...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.