Detail FNTCHRSET lost with variable line in POSITION

0 pts.
Tags:
Printing
RPGLE
We have varying fonts used on a form. When we specify the POSITION exactly, the FNTCHRSET is used for printing as requested. However, if we use a variable for the line in POSITION, the FNTCHRSET seems to be ignored. Example which prints fine using Helvetica Italic Bold: ------------ A R PRTLIN A #DESC 30 TEXT('DESCRIPTION') A FNTCHRSET(C0H50000 T1V10037) A POSITION(1.500 .600) ------------ Example changed, and which prints in the correct position, but now ignores the selected font: ------------ A R PRTLIN A #DESC 30 TEXT('DESCRIPTION') A FNTCHRSET(C0H50000 T1V10037) A POSITION(&LINE .600) A LINE 5S 3P ------------ Thanks! - Steve
ASKED: December 27, 2005  11:52 AM
UPDATED: December 30, 2005  10:46 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Just as additional information, when I tried using FONT instead of FNTCHRSET I had the same problem. However, either one works in a standalone program with the line in POSITION specified as a variable. It’s only in line with a complex form that it messes up.

Here’s two lines of DDS – the first prints in Courier, the second requests Helvetica, but prints Courier. Other lines in the same program which specify a different font but with POSITION specified print correctly…

[code]
A R LIN001
A #QTY 3 0 EDTCDE(Z)
A FNTCHRSET(C0440000 T1V10037)
A POSITION(&LINE .5)
A #ITM 15
A FNTCHRSET(C0440000 T1V10037)
A POSITION(&LINE 1.20)
A #DSC 70
A FNTCHRSET(C0440000 T1V10037)
A POSITION(&LINE 2.40)
A LINE 5S 3P
* A R LIN002
A #DS2 70
A FNTCHRSET(C0H50000 T1V10037)
A POSITION(&LINE .600)
A LINE 5S 3P
*
[/code]

Ideas? Thanks!

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following