Welcome! Log In Create A New Profile

Advanced

Bold Printing in Informix for CentoS 4.8

Posted by fmutale 
Bold Printing in Informix for CentoS 4.8
December 16, 2010 04:47AM
Hello All,

I wonder if you are in a position to help. I have been struggling to get bold text in informix for CentoS 4.8 and I
wonder if you know someone who could help. I have edited lpoptions and changed the settings but, this has not helped atall.

I have the following declarations and print command in my informix-4gl but things don't seem to get right.


DEFINE BoldOn CHAR(6),
BoldOff CHAR(6)



LET BoldOn = ASCII 27,"(s4B"
LET BoldOff = ASCII 27,"(s0B"

also tried this:

LET BoldOn = ASCII 27, ASCII 40, ASCII 115, ASCII 51, ASCII 66
LET BoldOff = ASCII 27, ASCII 40, ASCII 115, ASCII 48, ASCII 66


PRINT COLUMN 1, BoldOn CLIPPED, " ", "TO WHOM IT MAY CONCERN", BoldOff,
COLUMN 54, BoldOn CLIPPED, " ", "Ref: ", BoldOff CLIPPED, r_refno

PRINT COLUMN 1, BoldOn CLIPPED, " ", "This is to certify that: ", BoldOff, r_surname, " ", r_firstname

and this what I am getting:

^[(s4B TO WHOM IT MAY CONCERN^[(s0B ^[(s4B Ref: ^[(s0B 9844510
^[(s4B This is to certify that: ^[(s0B NAMONJE CAROL
^[(s4B is a registered student of the National Institute of Public Administration^[(s0B

We have HP LaserJet P3005 and P3015 Printers.

How can I avoid printing these characters and instead print [b]Bold letters[/b] ? Are there any settings I need to do in Environmental variables or CUPS settings or indeed the spooler ?


Your help will highly be appreciated, I really want to have this work.


Felix Mwango Mutale


fmutale02@yahoo.com
Re: Bold Printing in Informix for CentoS 4.8
December 20, 2010 02:41AM
Hello All,

I wonder if you are in a position to help. I have been struggling to get bold text in informix for CentoS 4.8 and I
wonder if you know someone who could help. I have edited lpoptions and changed the settings but, this has not helped atall.

I have the following declarations and print command in my informix-4gl but things don't seem to get right.


DEFINE BoldOn CHAR(6),
BoldOff CHAR(6)



LET BoldOn = ASCII 27,"(s4B"
LET BoldOff = ASCII 27,"(s0B"

also tried this:

LET BoldOn = ASCII 27, ASCII 40, ASCII 115, ASCII 51, ASCII 66
LET BoldOff = ASCII 27, ASCII 40, ASCII 115, ASCII 48, ASCII 66


PRINT COLUMN 1, BoldOn CLIPPED, " ", "TO WHOM IT MAY CONCERN", BoldOff,
COLUMN 54, BoldOn CLIPPED, " ", "Ref: ", BoldOff CLIPPED, r_refno

PRINT COLUMN 1, BoldOn CLIPPED, " ", "This is to certify that: ", BoldOff, r_surname, " ", r_firstname

and this what I am getting:

^[(s4B TO WHOM IT MAY CONCERN^[(s0B ^[(s4B Ref: ^[(s0B 9844510
^[(s4B This is to certify that: ^[(s0B NAMONJE CAROL
^[(s4B is a registered student of the National Institute of Public Administration^[(s0B

We have HP LaserJet P3005 and P3015 Printers.

How can I avoid printing these characters and instead print Bold letters ? Are there any settings I need to do in Environmental variables or CUPS settings or indeed the spooler ?


Your help will highly be appreciated, I really want to have this work.


Felix Mwango Mutale


fmutale02@yahoo.com
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready