Page 1 of 1

Printing spanish ñ and ó á é í ó dont work in HARU HMGPRINT

Posted: Fri Mar 06, 2020 5:10 pm
by juanato
Hello from Spain.

I try sometimes to create PDF files with complete set of spanish characters. Im using HMG 3.44 32 bits.

SET CODEPAGE TO SPANISH
SET HPDFDOC ENCODING TO "CP1252"



START HPDFDOC

START HPDFPAGE


@ 200,100 HPDFPRINT HB_OEMTOANSI( aTexto[1] ) FONT "Courier New" SIZE 14 CENTER
@ 205,100 HPDFPRINT HB_OEMTOANSI( aTexto[2] ) FONT "Times-Roman" SIZE 14 CENTER
@ 210,100 HPDFPRINT HB_OEMTOANSI( aTexto[3] ) FONT "Times-Roman" SIZE 14 CENTER
@ 215,100 HPDFPRINT HB_OEMTOANSI( aTexto[4] ) FONT "Times-Roman" SIZE 14 CENTER
@ 220,100 HPDFPRINT HB_OEMTOANSI( aTexto[5] ) FONT "Times-Roman" SIZE 14 CENTER

@ 260,20 HPDFPRINT HB_OEMTOANSI(aTexto[6] ) FONT "Times-Roman" SIZE 10
@ 265,25 HPDFPRINT HB_OEMTOANSI( aTexto[7]) FONT "Times-Roman" SIZE 10

@ 275,90 HPDFPRINT HB_OEMTOANSI(aTexto[8]) FONT "Courier New" SIZE 10 BOLD
@ 280,90 HPDFPRINT HB_OEMTOANSI(aTexto[9]) FONT "Courier New" SIZE 10 BOLD
@ 285,90 HPDFPRINT HB_OEMTOANSI(aTexto[10]) FONT "Courier New" SIZE 10 BOLD

*------------------------------------------------------------------------------------*

END HPDFPAGE

END HPDFDOC
*----



I would apreciate some help to create PDF spanish compliant.

Thanks.

Re: Printing spanish ñ and ó á é í ó dont work in HARU HMGPRINT

Posted: Fri Mar 06, 2020 6:29 pm
by mustafa
Hola amigo juanato
Procura colocar en el prg

#include "hmg.ch"
Function Main()

SET CODEPAGE TO UNICODE

etc... etc..

y salvas el Prg como Guardar como... UTF-8

Haber si funciona

Saludos
Mustafa