Consultor Eletrônico



Kbase P122656: An extra page is printed when using OUTPUT TO <file> PAGED with DOS PRINT command
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   06/03/2007
Status: Unverified

SYMPTOM(s):

An extra page is printed when using OUTPUT TO <file> PAGED with DOS PRINT command

CAUSE:


The DOS PRINT command will always generate a final formfeed at the end of output. Progress also embeds formfeeds in the generated output when the PAGED option is specified (or implied by use of OUTPUT TO PRINTER).

FIX:

Although this solution is written with specific references to the DOS operating, it is applicable to UNIX / LINUX operating systems subject to changing of the DOS command-tokens to their UNIX / LINUX counterparts.
The output of the extra page can be avoided by using a DOS COPY <filename> LPT1 instead of the DOS PRINT statement. Another alternative is to first capture the desired output device to LPT1 and use OUTPUT TO LPT1 instead of the OUTPUT TO <filename> statement.