473,405 Members | 2,294 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,405 software developers and data experts.

How can i print the LPT1 ?

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 do the same in vb.net?
Nov 21 '05 #1
1 5916
"Luis Ramos" <Lu*******@discussions.microsoft.com> schrieb:
In VB6 i use to print text to the lpt1 port, because of matricial printers
[...]
How can i do the same in vb.net?


HOW TO: Send Raw Data to a Printer by Using Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;322090>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #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...
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 '...
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...
1
by: calvinca | last post by:
In VB Open "Lpt1" For Output As #1 PRINT #1 "xxx" Close #1 but how about in C# ? anyone help ?
9
by: jim-on-linux | last post by:
This is the situation I'm in. I've built a single file utility using py2exe. I zip the dist directory and send it to the client. For clients that use win95, win98 machines, They unpack the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.