Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attributte- Font sizes & bold

Status
Not open for further replies.

koko45

Technical User
Jul 21, 2003
5
PG
In informix 4gl how can we increase font sizes or bold characters to be printed on an output.

 
Hi,

Informix 4GL is a text based tool. One can not expect the functionality of GUI to be availble in it. The product Informix Dynamic 4GL (D4GL) is capable of printing the matters using different fonts and sizes.

However, you may use your printer (hardware) capability to print such fonts as double strikes, double width, double height, compressed etc. depending upon make & model of the printer. Refer to your printer mannual for more information about this matter.

Following is a sample 4GL code applicable to Epson campatible dot-matrix printer.

database testdb
define ds_on,ds_off,dw_on,dw_off,cm_on,cm_off varchar(6)
main
let ds_on = ascii(27), ascii(71)
let ds_off = ascii(27), ascii(72)

let dw_on = ascii(27), ascii(14)
let dw_off = ascii(27), ascii(20)

let cm_on = ascii(27), ascii(15)
let cm_off = ascii(27), ascii(18)

start report font to "test.txt"
output to report font()
finish report font
end main

report font()
output
left margin 0
format
on every row
print ds_on, "THIS IS DOUBLE STRIKE", ds_off
print dw_on, "THIS IS DOUBLE WIDTH ", dw_off
print cm_on, "THIS IS COMPRESSED ", cm_off
end report

Regards,
Shriyan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top