home *** CD-ROM | disk | FTP | other *** search
- <<* MSARPT1.INC *>>
-
- <<procedure GenOneReport>>
- <<begin>>
- PARAMETER row
- * ---Print single record contents to printer.
- PRIVATE indent
- indent = ""
- DO SayLine WITH row,"Is PRINTER ready? (y/n)"
- DO GetKey WITH choice,"YN"+Returnkey
- IF choice = "Y"
- DO SayLine WITH row,"Printing record..."
- SET ESCAPE ON
- SET CONSOLE OFF
- SET DEVICE TO PRINT
- * ---Report format follows.
- <<#
- select fields on (fldtyp = 'C') and (fldals <> 'M')
- if fldtotal > 0
- pushmargin(1)
- RESEQ by fldrow
- GenReportFile
- popmargin
- endif
- #>>
- SET DEVICE TO SCREEN
- SET CONSOLE ON
- SET ESCAPE OFF
- DO SayLine WITH row,"Send FORMFEED to printer? (y/n)"
- DO GetKey WITH choice,"YN"+Returnkey
- IF choice = "Y"
- EJECT
- ENDIF
- ENDIF
- <<end GenOneReport>>
-
- <<* EOF: MSARPT1.INC *>>