Printing directly to LPT port  
Author Message
Aleniko29139





PostPosted: Visual FoxPro General, Printing directly to LPT port Top

Hi everyone;

I have 2 dot matrix printers installed on a win98 machine.

I can successfully print from other machines to the printers on the win98 machine by issuing:

set printer to \\win98machine\invoices
or
set printer to \\win98machine\reports


The problem is that I can't find a way to print to these printers from the win98 machine itself.

The above set printer command won't work.

Neither would
set printer to LPT1:
or
set printer to LPT2:

They are simply disregarded and the printer is still the default windows driver.

Any ideas would be greatly apreciated.

As always - thanks.


Visual FoxPro1  
 
 
CetinBasoz





PostPosted: Visual FoxPro General, Printing directly to LPT port Top

set printer to name (getprinter())
 
 
Aleniko





PostPosted: Visual FoxPro General, Printing directly to LPT port Top

Cetin;

Set printer to name will not print direcly to the port. It would go through the windows printer driver.

Aleniko.

 
 
Alex Feldstein





PostPosted: Visual FoxPro General, Printing directly to LPT port Top

It's not that easy as Windows insists in going through the printer spooler.

Maybe this will be of help:

http://www.universalthread.com/wconnect/wc.dll 2,54,33,9957


 
 
CetinBasoz





PostPosted: Visual FoxPro General, Printing directly to LPT port Top

So what You can capture LPT1:, no
 
 
Aleniko





PostPosted: Visual FoxPro General, Printing directly to LPT port Top

Yes, but I would still print to the destination driver. Not to the port.