Have a Question?
Print

00626: How to immediately view a report that has been printed to a file

Title:

How to immediately view a report that has been printed to a file

Description:

If you would like to immediately view a report via NOTEPAD (or any other text editor) after writing it to a file, the following alias line will accomplish this: 

alias PF2 “$FILE” “Notepad” CR,CPCOLS=255,SPCOLS=255,O_CREATE,O_TRUNC,FILE=C:\temp\Testfile.PRN,execoff=”NOTEPAD.EXE testfile.prn” 

Note that the example above uses Notepad as the editor, which makes it specific to the Windows Operating System. However, any text editor will work (such as Edit under DOS or vi under Unix) 

The second method which is not as compact and requires hard-coding would be to write to the file and then do an SCALL to the editor with the filename just written as the variable.



Last Modified: 03/03/2000 Product: Visual PRO/5

BASIS structures five components of their technology into the BBx Generations.

Table of Contents
Scroll to Top