PxPlus User Forum

Twitter Twitter Twitter

Author Topic: 'TEXT' mnemonic.  (Read 750 times)

HendersonS

  • Silver Member
  • ***
  • Posts: 47
    • View Profile
'TEXT' mnemonic.
« 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)
« Last Edit: May 26, 2020, 09:11:50 PM by HendersonS »

James Zukowski

  • Diamond Member
  • *****
  • Posts: 240
    • View Profile
Re: 'TEXT' mnemonic.
« Reply #1 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.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

HendersonS

  • Silver Member
  • ***
  • Posts: 47
    • View Profile
Re: 'TEXT' mnemonic.
« Reply #2 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: "),
« Last Edit: May 27, 2020, 08:22:55 AM by HendersonS »