Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOS with Laser / Inkjet Printers
Message
From
07/05/2002 20:33:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00653675
Message ID:
00653808
Views:
17
>Ok, confieso...
>En aquellos tiempos, no usaba el generador de reportes, todos mis reportes eran generados via programación, hacer un cambio de todos esos programas (reportes) no sería conveniente (para mi) en estos momentos. Usando los parametros de impresora, solo debería declararlos en el archivo de configuración del programa (un archivo de texto con extensión .CFG que leo al inicio del programa) y utilizar esos valores en el momento apropiado dentro de esos programas...
>
>Por lo antes expuesto, me voy a ver en la penosa obligación de RTFM (Read The F.. Manual)..

The code you saw here can still be usable - the escape sequences are what you actually need. You may do something like this (as most of us did in DOS days):
do case
   case lcPrinter="HPLJ"
      e_bold_on=chr(27)+"...{laser sequence goes here}"
      e_bold_off=chr(27)+"...{laser sequence goes here}"
      e_italic_on=...
   case lcPrinter="bubble"
      e_bold_on=chr(27)+"...{bubblejet sequence goes here}"
      e_bold_off=chr(27)+"...{bubblejet sequence goes here}"
      ...
   case lcPrinter="esc/p"
      e_bold_on=chr(27)+"...{esc/p sequence goes here}"
      e_bold_off=chr(27)+"...{esc/p sequence goes here}"
...
endcase
And then you simply insert these variables into your ? and ?? statements.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform