Intercept COBOL Print Job in Windows XP
Posted on 2011-09-28
I have an old COBOL accounting software package that is running within a framework that allows it to operate in Windows environments. This program, obviously, is quite old and the company that produced it is no longer supporting it.
I have need to print something from this program onto a pre-defined template, but since last time I've needed this done the template has changed. There are no COBOL programmers available anywhere near me to re-write this data, anyway this his likely the last time I'll need it to print this data.
Is there some way I can intercept the data being sent to the printer and capture it in a format that I can then use to print this information using Word or Excel? My thinking is that COBOL is exporting this data to the printer in plain text since I was required to install a parallel port in the printer so the escape codes would work correctly.
Thanks for whatever leads anyone can give me.