473,480 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to print in text mode in vb.net?

Or how to send a string directly do LPT?
Thanks in advance for help.
Regards
Piotr
Nov 20 '05 #1
7 4776
* pi***********@poczta.onet.pl (Piotr Kowalski) scripsit:
Or how to send a string directly do LPT?


<http://support.microsoft.com/default.aspx?scid=kb;EN-US;322090>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #2
Thank you very much!
Piotr

On 14 Nov 2003 12:59:44 +0100, hi***************@gmx.at (Herfried K.
Wagner [MVP]) wrote:
* pi***********@poczta.onet.pl (Piotr Kowalski) scripsit:
Or how to send a string directly do LPT?


<http://support.microsoft.com/default.aspx?scid=kb;EN-US;322090>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>


Nov 20 '05 #3
Well, I've tried the MS's sample, but it doesn't work.
It simply executes with no error, or anything else.
But when I try to print something from Notepad after that, the string
from example is printed before the text from Notepad!
Can you help me with that?
Regards
Piotr
Nov 20 '05 #4
Well, I've tried the MS's sample, but it doesn't work.
It simply executes with no error, or anything else.
But when I try to print something from Notepad after that, the string
from example is printed before the text from Notepad!
Can you help me with that?
Regards
Piotr
Nov 20 '05 #5
Funny, it started to work properly, when I've added the vbCrLf at the
end of string to print.
Regards
Piotr
On Sat, 15 Nov 2003 19:10:10 GMT, pi***********@poczta.onet.pl (Piotr
Kowalski) wrote:
Well, I've tried the MS's sample, but it doesn't work.
It simply executes with no error, or anything else.
But when I try to print something from Notepad after that, the string
from example is printed before the text from Notepad!
Can you help me with that?
Regards
Piotr


Nov 20 '05 #6
* pi***********@poczta.onet.pl (Piotr Kowalski) scripsit:
Funny, it started to work properly, when I've added the vbCrLf at the
end of string to print.


Problem solved?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #7

Well, actually not. As far as I found, the solution works only with
generic text only printer installed in the system. When I try the
software with HP DeskJet it crashes.
It was much easier to implement such a printing in VB6.0, I used to
open "LPTx" for writing just like a normal file and it worked well.
Regards
Piotr

On 16 Nov 2003 13:06:37 +0100, hi***************@gmx.at (Herfried K.
Wagner [MVP]) wrote:
* pi***********@poczta.onet.pl (Piotr Kowalski) scripsit:
Funny, it started to work properly, when I've added the vbCrLf at the
end of string to print.


Problem solved?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


Nov 20 '05 #8

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

Similar topics

30
4125
by: Martin Bless | last post by:
Why can't we have an additional 'print' statement, that behaves exactly like 'print' but doesn't insert that damn blank between two arguments? Could be called 'printn' or 'prin1' or 'prinn'...
14
2879
by: Marcin Ciura | last post by:
Here is a pre-PEP about print that I wrote recently. Please let me know what is the community's opinion on it. Cheers, Marcin PEP: XXX Title: Print Without Intervening Space Version:...
4
2151
by: Julie Siebel | last post by:
Apologies...I'm sure this has been asked before, but I can't seem to come up with the correct Google search terms. While my problem is with stylesheets, the errors are being caused by my...
8
35589
by: geotso | last post by:
Hi I'm trying to hide from printing a specific element of a page but I don't know how (and if) I could. Here is an example of what I'm trying to do: <h1>Hidden in print mode</h1> <p>Also...
0
1694
by: BlueSky | last post by:
Hi, I want to print in Landscape format from an aspx page (when ever the user chooses print from the browser or a print button on the form). I load aspx controls dynamically on the page. I used...
1
2910
by: osmarjunior | last post by:
I read some messages in the group about printing in text mode. The PrintDocument class didn't solve my problem, because it prints in graphic mode. I have a matrix printer, and printing in text...
13
3175
by: damonwischik | last post by:
I'd like to print out a unicode string. I'm running Python inside Emacs, which understands utf-8, so I want to force Python to send utf-8 to sys.stdout. From what I've googled, I think I need...
12
3510
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
0
1301
by: praveenhathwar | last post by:
Hi, I have a flexgrid with few data. Now I want that to be print in DOS Mode (To be print on Notepad), Preview it for the user and prevent the user from modifying the data in it. Is there any...
2
2089
by: dmorand | last post by:
When I try to print a 'print version' of my page it looks fine in IE 7, but when I print in IE 6 the margins are all screwed up. The page itself looks the same in both browsers, it's just when I...
0
7046
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
6908
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
7048
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
7088
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
6956
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...
1
4783
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...
0
2997
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1300
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 ...
0
183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.