ESC-Sequence in Report
Posted in 1999
Topics: Platform-Specific Issues
Hello to all! Is it possible to ESC-Sequences in reports?. I'm using Informix 4.00.UH2 SE on a HP-UX 10.01 system. What is to do to use a ESC-Sequence in a report? Best regards. Dirk Emmermacher Nieders'chsischer Turner-Bund e.V.
Dirk Emmermacher wrote: > > Hello to all! > > Is it possible to ESC-Sequences in reports?. I'm using Informix 4.00.UH2 > SE on a HP-UX 10.01 system. > What is to do to use a ESC-Sequence in a report? > > Best regards. > > Dirk Emmermacher > Niedersächsischer Turner-Bund e.V. Example in 4gl-programm # esc-seq. laserjet 5000 PRINT ASCII 027, "&l27a", # dina3 ASCII 027, "&l1h", # fach2 ASCII 027, "&l0O" , # hochformat ASCII 027, "&k3G", # CR=CR+LF; LF=CR+LF; FF=CR+FF ASCII 027, "(s11H", # 11 zeichen pro zoll ASCII 027, "&l0E", # oberer Rand 0 ASCII 027, "&l94F", # textlaenge 94 ASCII 027, "&l0L" # perf.-skip off -- Klaus Gotthardt, Johann Wolfgang Goethe-Universität,Verwaltungsdatenverarbeitung Email: K.Gotthardt@em.uni-frankfurt.de Tel:+49 (0)69-798-23380 Fax:+49 (0)69-798-23381 Home,pgp-key: http://www.rz.uni-frankfurt.de/~gotthard
Unfortunately, you must also remember that Informix keeps track of where it thinks the 'printhead' is. Every character moves the virtual printhead by one position, and every linefeed is the same virtual height. You have to be very careful, not to say lucky, to get 'pretty printing' to work. In article <369C9AFF.393B@em.uni-frankfurt.de> k.gotthardt@em.uni-frankfurt.de "Klaus Gotthardt" writes: > Dirk Emmermacher wrote: > > > > Hello to all! > > > > Is it possible to ESC-Sequences in reports?. I'm using Informix 4.00.UH2 > > SE on a HP-UX 10.01 system. > > What is to do to use a ESC-Sequence in a report? > > > > Best regards. > > > > Dirk Emmermacher > > Nieders'chsischer Turner-Bund e.V. > > Example in 4gl-programm > > # esc-seq. laserjet 5000 > PRINT ASCII 027, "&l27a", # dina3 > ASCII 027, "&l1h", # fach2 > ASCII 027, "&l0O" , # hochformat > ASCII 027, "&k3G", # CR=CR+LF; LF=CR+LF; FF=CR+FF > ASCII 027, "(s11H", # 11 zeichen pro zoll > ASCII 027, "&l0E", # oberer Rand 0 > ASCII 027, "&l94F", # textlaenge 94 > ASCII 027, "&l0L" # perf.-skip off > > > > -- > Klaus Gotthardt, > Johann Wolfgang Goethe-Universit't,Verwaltungsdatenverarbeitung > Email: K.Gotthardt@em.uni-frankfurt.de > Tel:+49 (0)69-798-23380 > Fax:+49 (0)69-798-23381 > Home,pgp-key: http://www.rz.uni-frankfurt.de/~gotthard > -- Andy Lennard andy@kontron.demon.co.uk