Re: Printing port question
- From: "Davide Guolo" <guolo.NOSPAM.davide@xxxxxxxxx>
- Date: Thu, 15 Mar 2007 12:20:17 GMT
Dear Mr. Biggar,
Since I would suspect that the newer printers on the market have only USB
connections, is it possible to print, using a DOS-based program, through a
USB connection? I am assuming that dBase defaults to the LPT1 port. Is
there a way to trick the program so that it prints through a USB port?
For some of the programs, I do not have the original source code, although I
don't know if that would be of any value to me. I don't look forward to
redesigning the programs
you may want to have a look at Printfil to capture the DOS LPT1: output and
forward it to any printer installed on your Windows machine (including USB,
GDI and virtual printers) without rewriting your programs and with many extras.
You can find more info and a free trial version to download at
http://www.printfil.com
Please note that with dBase you may also avoid capturing the LPT1 output by
changing a single line of code (where you still have the sources) this way:
SET DEVICE TO PRINT
SET CONSOLE OFF
SET PRINTER ON
SET PRINTER TO ("C:\My_Dir\Filename.txt") // This is the line
....
.... @ x,y say ... normal printing commands
....
SET PRINTER OFF
SET CONSOLE ON
SET DEVICE TO SCREEN
SET PRINTER TO
Then you only have to set the "File to Check" field in the Printfil's
configuration dialog as c:\my_dir\filename.txt to have your dBase print
jobs automatically captured and printed by Printfil to your preferred
Windows printer.
Kind regards,
Davide Guolo
aSwIt s.r.l.
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.printfil.com
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.aswit.com/odbc4all
@Kill - Batch Close Windows Applications - Freeware
http://www.aswit.com/akill
--------------------------------------------------------------
.
- Follow-Ups:
- Re: Printing port question
- From: Gordon Biggar
- Re: Printing port question
- References:
- Printing port question
- From: Gordon Biggar
- Printing port question
- Prev by Date: Re: viewing IIS log, how??
- Next by Date: Re: Windows colours went black
- Previous by thread: Re: Printing port question
- Next by thread: Re: Printing port question
- Index(es):
Relevant Pages
|