Re: Local Printing in Informix Environment
Posted in 1994
nick_ganesan@CTS.db.erau.edu ("nick ganesan") writes: > > Can anyone tell me what I need to do to perform local printing > (Printer attached to a terminal/PC (terminal emulation) via > 4-GL and or/DB-Access > 2 ways: Have the user toggle the printer capture (CTRL-PRTSCRN on PCs): PROMPT "Toggle printer ON and type RETURN" FOR CHAR ans # run the report to screen, and the toggle will will echo it # to the printer START REPORT ... ... FINISH REPORT # the REPORT should output an extra blank sheet, because the prompt # below will print. PROMPT "Toggle printer OFF and type RETURN" FOR CHAR ans or: If you know the escape sequence that toggles the printer port on/off (different for different terminal emulations; consult you softwar or terminal manual): RUN "echo \\033toggleprinterON" # run the report to screen, and the toggle will will *divert* it # to the printer port; it won't show on screen START REPORT ... ... FINISH REPORT RUN "echo \\033toggleprinterOFF" ======================================================================= Dennis J. Pimple dennisp@informix.com Opinions expressed Senior Consultant -------------------- are mine, and do not Informix Software Inc Voice: 303-850-0210 necessarily reflect Denver Colorado USA Fax: 303-779-4025 those of my employer.