>I've just run into some code in a client's application that sends a formatted string (the concatenation of multiple reports and documents) directly to a printer using ???. The process has worked without modification for over 20 years and the client is not willing to give the functionality since it is an integral part of their business. Lately, under certain conditions only the first page of output will be printed. I guess I'm surprised that it still works at all. However...what is a good replacement for "???" in this situation? Obviously, we need to bypass the printer driver.
Hilmar has a download#
9991 which I believe can help in this sort of situation (haven't used it myself).
If that doesn't work for you, one approach is to wrap the code in a SET ALTERNATE TO ( some file ) so the ??? commands get captured to a file, and when you're done dump the file to the printer. If, say, the PRN or LPT1 DOS printer ports are captured/redirected to a Windows printer (local or network), you can COPY FILE ( some file ) TO PRN.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up