How to print in text mode in vb.net?

  • Thread starter Thread starter Piotr Kowalski
  • Start date Start date
P

Piotr Kowalski

Or how to send a string directly do LPT?
Thanks in advance for help.
Regards
Piotr
 
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
 
Funny, it started to work properly, when I've added the vbCrLf at the
end of string to print.
Regards
Piotr
 
* (e-mail address removed) (Piotr Kowalski) scripsit:
Funny, it started to work properly, when I've added the vbCrLf at the
end of string to print.

Problem solved?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top