VB app to control LPT1 port. 
Author Message
 VB app to control LPT1 port.

Does anyone out there know how to take control of the LPT1 port from a
VB application?

My problem is as follows:

The VB app is taking a postscript Print file out of a directory and
sends it to the Printer Object.

The problem is the printer is printing Postscript code because Windows
has control of the default printer driver and it translates the print
file as TEXT to be printed in Postscript.

Is there a way to switch the default printer driver to "Pass Through"?
Or is there a 'null' printer driver out there somewhere that I can use
as a default printer?

--
Joel Harlan

My opinions are not necessarily the opinions of ELT



Tue, 09 Sep 1997 04:08:56 GMT  
 VB app to control LPT1 port.

Quote:

>Does anyone out there know how to take control of the LPT1 port from a
>VB application?

Joel, you can print directly to the LPT1 port with this code:

Open "LPT1" For Output As #1

Then your regular output statements work just fine and VB thinks you are
writing to a file, not a Windows printer.

HTH.
--

Systems Analyst         WWW:    http://www.phoenix.net/USERS/getj



Fri, 12 Sep 1997 10:29:27 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Need help to read LPT1 pins from a VB app

2. Aretmis Data Control - Porting Clipper Apps to VB

3. Read port LPT1:

4. LPT1 PORT

5. Read port LPT1:

6. LPT1 PORT

7. Open a LPT1 port

8. Parallel Port LPT1 Configurations

9. Using the LPT1 port

10. LPT1 ports

11. Copy an File on LPT1 port

12. How to Capture the Port Printer LPT1

 

 
Powered by phpBB® Forum Software