PxPlus User Forum

Main Board => Discussions => Language => Topic started by: HendersonS on May 26, 2020, 04:01:04 PM

Title: 'TEXT' mnemonic.
Post by: HendersonS on May 26, 2020, 04:01:04 PM
Hi all,

Printing with mnemonic 'TEXT', to print text, and using mnemonic 'BB' for bold text, everything in the viewer looks fine, but when exported to PDF format, bold disappears.
 
anyone know why? code used below.

Code: [Select]
LET CHAN=UNT; OPEN (CHAN)"*viewer*;SUPPRESSWATERMARKS;ORIENTATION=PORTRAIT"
 PRINT (CHAN)'BB','TEXT'(600,190,"Customer:"+CUST_NAME$),'EB'
 CLOSE (CHAN)
Title: Re: 'TEXT' mnemonic.
Post by: James Zukowski on May 26, 2020, 06:30:22 PM
Have you tried setting/resetting the 'FONT' mnemonic with ",B"? According to the documentation, 'TEXT' is using the latest 'FONT' and Color attributes. The VIEWER is a program that may be giving you a "free ride" with the bolding of the 'TEXT'. It's reading and deciphering mnemonics to create the desired display. PDF doesn't interpret it quite the same way.
Title: Re: 'TEXT' mnemonic.
Post by: HendersonS on May 27, 2020, 08:20:02 AM
thanks for reply,with the font resetting  works fine.

Code: [Select]
PRINT (CHAN)'FONT'("Courier New",-12,"B"),'TEXT'(600,190,"Customer: "),