controlling printer port using vb

N

Thread Starter

nachiket phatak

Hi, Nachiket Phatak from India.

I want help regarding writing codes in vb 6.0 to control Com port or Printer port. Can anybody suggest book for the above subject?

Regards.
 
G

Gregory Gosse

Hi,

With VB, you can control the Com ports using the MSCOMM control.

Don't forget to add MICROSOFT COMM CONTROL 6.0 in menu Projet>Composants (french version) The Control should appear on your tool bar. Look at the VB help for control details.

To use the Printer port you need the inpout32.dll
I have not tried it yet.

Regards.
 
P

Piotr Kowalski

<p>Hi,

<p>Printing in the text mode:
<pre>
Open "LPT1" For Output As fil
Print #fil, txtOut
Close #fil
</pre>
<p>Regards<br>
Piotr Kowalski
 
Top