If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Printing Bold Letters in Informix 7.32 UC3

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-24-10, 06:29
Felix M Mutale Felix M Mutale is offline
Registered User
 
Join Date: Sep 2006
Posts: 17
Printing Bold Letters in Informix 7.32 UC3

Dear All,

I have been struggling to get bold letters in informix 7.32 UC3 for CentoS 4.8 and I don't know what PCL Command Sequences I could use and I felt you could help.

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


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


----LET BoldOn = ASCII 27, ASCII '&040', ASCII '&115', ASCII '&052', ASCII '&066'
----LET BoldOff = ASCII 27, ASCII '&040', ASCII '&115', ASCII '&048', ASCII '&066'

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


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 charaters and instead print Bold letters ? Are there any settings I need to do in Environmental variables or CUPS settings ?


Your help will highly be appreciated.


Felix Mwango Mutale
Reply With Quote
  #2 (permalink)  
Old 11-03-10, 23:25
daviidwilson daviidwilson is offline
Registered User
 
Join Date: Nov 2010
Posts: 1
Quote:
Originally Posted by Felix M Mutale View Post
Dear All,

I have been struggling to get bold letters in informix 7.32 UC3 for CentoS 4.8 and I don't know what PCL Command Sequences I could use and I felt you could help.

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


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


----LET BoldOn = ASCII 27, ASCII '&040', ASCII '&115', ASCII '&052', ASCII '&066'
----LET BoldOff = ASCII 27, ASCII '&040', ASCII '&115', ASCII '&048', ASCII '&066'

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


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 charaters and instead print Bold letters ? Are there any settings I need to do in Environmental variables or CUPS settings ?


Your help will highly be appreciated.


Felix Mwango Mutale
Thanks for sharng.It's geat



___________________
watch movies online
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On