Unscruffed
Programmer
We have a DOS program at our workshop that does inventory / customer database / statements / invoicing etc; that prints everything to PRN (LPT1).
Because the app is DOS, we have a lot of printing reliability issues, and the ugly "console" style printing.
I'm trying to intercept the print output so that I can modify the data, then print it through Windows.
Basically, what I'm trying to achieve is a background app that will do the following:
1: capture the LPT1 output to a TEXT FILE
OR
capture the LPT1 output to STDIN
OR
capture the LPT1 output via COMMAND$
2: make modifications to "pretty-up" the output a bit (a nice modern format with graphic letterhead, TT fonts, tables, etc
3: send the modified data to the printer
Steps 2 & 3 are no problem once I have the original output, but I can't figure out any way to do step 1.
Anyone have any ideas?
Any help appreciated.
***********************************************************
FAQ Answers:
1: What I already tried:
I've looked at many 3rd party apps including:
* DosPrn - that's what we're currently using
* PrintFil
* Print Distributor
* a whole bunch of other stuff including print drivers
that are "supposed" to print to ascii files. (Hmmm)
I can't find anything that really does what I need.
I've decided the most reliable method will be a custom app.
2: The DOS App:
The DOS app is "DK Autoshop".
This app is "industry specific" for the Australian
Automotive industry. The latest update is still DOS,
and as such, will still present the same problems.
3: Alternatives:
There is no Windows app that does everything the DOS
app does, and is so easy to use. Changing software is
not an option in this case.
***********************************************************
Be good. If you can't, don't get caught!