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

Moderator: Rathinagiri

Post Reply
juanato
Posts: 44
Joined: Fri Sep 21, 2012 2:42 pm

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

Post 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.
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

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

Post 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
Post Reply