Put control

Wilbert

New Member
Hi everybody,

We encountered some strange phenomenon using the PUT CONTROL statement.

When we use variables like...
def var a as char init "~033P". /* 10 cpi */
...and subsequently use ...
OUTPUT TO lpt1.
PUT CONTROL a.
DISPLAY "Hello world" WITH FRAME x.
... then everything goes fine: "hello world" is printed with 10 cpi.

But if we store the value of a in a db-field (printers.printcode) then using ...
OUTPUT TO lpt1.
PUT CONTROL printers.printcode.
DISPLAY "Test" WITH FRAME x.
... yields:
~033P
Hello world

Has anybody got an idea what causes this??


------------------
Wilbert
 

tdi

Progress Fan
This a documented bahavior.
You can find some info on the following documentos of the Progress Knowledge Base docs:
16880
18271
check especially 15811, wich demonstates how you can store control codes
19066
17350 states particullary what's going on in you case.
Also check 15276 and 16020 which in turn tells several documents also.
 

tdi

Progress Fan
By the way, does any one knoes where to find the control codes for a laserjet?
I try to adjust one user to print on a 6L, but could find docs on control codes for it.
Also, i have -Wa -wpp at the startup, and get all plain text, i've tried ripping off the parameters, and i use _osprint.p, but in font parameter put 20 (for example), which is small font in my system, the printout is not done with the font 20, nor i can't print landscape, as documented.
i'll try vsviewer as suggested by some one here...

Gracias & Adios Amigo
 
Top