AREV Printer resetting (AREV Specific)
At 14 APR 1999 03:52:52PM Steve Waite wrote:
On an Advanced Revelation 2.1 report I need to print, I send a condense Laser code to an HP printer. The report is then sorted and sent to the printer. If the report becomes to large the printer resets to normal print before the data arrives to the printer. Is there a way to keep the printer code set until the next printer code is sent via AREV?
At 14 APR 1999 05:54PM Jonathan Bird wrote:
Why not send your control codes as the first few characters of the heading? That way every page will be corrct, regardless of what happens at the printer end.
J
At 15 APR 1999 12:31PM Dan Manning wrote:
What is happening is that your network is closing the print file the program has opened through a time out, sending the file through the printer queue and reopening a new print file for the remainder of report. Whenever a report does processing on the fly, you run into the problem that the time to process exceeds the time out set by the network.
Although you could manipulate the time out, the easiest solution is to send the report to DOS file through the PDisk command. When the report is done, then send the DOS file to the printer. Your code would look something like:DOS_NAME=C:\TEMP\REPORT'PERFORM 'PDISK ':DOS_NAMEPRINTER ONPRINT Condensed_Esq_Seq:Print the rest of the reportPRINT CHAR(27):'E' ;* To reset the printerPRINTER OFFPERFORM 'PDISK PRN'PERFORM 'SUPEND EXIT COPY ':DOS_NAME:' LPT1:'