Problema con HaruPDF
Moderator: Rathinagiri
Problema con HaruPDF
Hola a todos
Me puse de nuevo a probar la HaruPDF, todo iba bien, hasta que dejo de generar el archivo .pdf.
Intente, intente, intente... hasta que me di cuenta de un cambio que habia hecho, lo corregí, lo
probe y de nuevo funcionó, ya me genera de nuevo el archivo !!!
Lo que hice fué que cambié el tipo de font que traía el ejemplo (Courier-Bold) por:
@ 050,011 HPDFPRINT A2O( AllTrim(cEmpresa) ) FONT "Verdana" SIZE 8 COLOR BLACK
y con este cambio dejo de generar el archivo .pdf
Es un Bug ? o hay solo ciertos Fonts que funcionan con la HaruPDF ?. Gracias
------------------------------------------------------------------------------------------
Hi all
I got back to test the HaruPDF, everything was fine, until I stop generate the. Pdf.
Try, try, try ... until I realized I had made a change, I corrected it, it
probe and again it worked, I generate the file again!
What I did was to change the type of font that brought the example (Courier-Bold) by:
@ 050.011 HPDFPRINT A2O (ALLTRIM (cEmpresa)) FONT "Verdana" SIZE 8 COLOR BLACK
and with this change no longer generates the. pdf
It is a bug? or are there only certain fonts that work with HaruPDF?. thanks
Me puse de nuevo a probar la HaruPDF, todo iba bien, hasta que dejo de generar el archivo .pdf.
Intente, intente, intente... hasta que me di cuenta de un cambio que habia hecho, lo corregí, lo
probe y de nuevo funcionó, ya me genera de nuevo el archivo !!!
Lo que hice fué que cambié el tipo de font que traía el ejemplo (Courier-Bold) por:
@ 050,011 HPDFPRINT A2O( AllTrim(cEmpresa) ) FONT "Verdana" SIZE 8 COLOR BLACK
y con este cambio dejo de generar el archivo .pdf
Es un Bug ? o hay solo ciertos Fonts que funcionan con la HaruPDF ?. Gracias
------------------------------------------------------------------------------------------
Hi all
I got back to test the HaruPDF, everything was fine, until I stop generate the. Pdf.
Try, try, try ... until I realized I had made a change, I corrected it, it
probe and again it worked, I generate the file again!
What I did was to change the type of font that brought the example (Courier-Bold) by:
@ 050.011 HPDFPRINT A2O (ALLTRIM (cEmpresa)) FONT "Verdana" SIZE 8 COLOR BLACK
and with this change no longer generates the. pdf
It is a bug? or are there only certain fonts that work with HaruPDF?. thanks
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Problema con HaruPDF
HaruPDF can handle some fonts natively and all ttf fonts. In the case of a ttf font, it is being embedded into the PDF document itself.
The following are the base14 fonts, natively handled by HaruPDF.
Courier
Courier-Bold
Courier-Oblique
Courier-BoldOblique
Helvetica
Helvetica-Bold
Helvetica-Oblique
Helvetica-BoldOblique
Times-Roman
Times-Bold
Times-Italic
Times-BoldItalic
Symbol
ZapfDingbats
You were using 'courier-bold' which is a base14 font by itself. So it should not be a problem at all. Can you post a small sample?
The following are the base14 fonts, natively handled by HaruPDF.
Courier
Courier-Bold
Courier-Oblique
Courier-BoldOblique
Helvetica
Helvetica-Bold
Helvetica-Oblique
Helvetica-BoldOblique
Times-Roman
Times-Bold
Times-Italic
Times-BoldItalic
Symbol
ZapfDingbats
You were using 'courier-bold' which is a base14 font by itself. So it should not be a problem at all. Can you post a small sample?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Problema con HaruPDF
Hola rathinagiri
Te anexo el ejemplo que no genera el archivo PDF.
--------------------------------------------------
Hello rathinagiri
I annex the example does not generate the PDF file.
Te anexo el ejemplo que no genera el archivo PDF.
--------------------------------------------------
Hello rathinagiri
I annex the example does not generate the PDF file.
- Attachments
-
- DemoPdf.rar
- (21.4 KiB) Downloaded 632 times
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
Re: Problema con HaruPDF
Me parece GENIAL la HaruPDF, ya pude hacer un formato con mas
control sobre los datos y un poco mas de "vista", solo que encontré
otros 2 detalles.
* Yo utilizo la función HB_OEMTOANSI(msj) para desplegar acentos, ñÑ
y algun otro caracter. Al pasarlos a la HaruPDF, me despliega algo
diferente con la misma función, Ejemplo: SÆbado, 13 de Abril de 2013
en vez de Sábado.
* Quiero utilizar la función HMG_HPDF_PageNo(), pero no despliega nada !
ni poniendola como viene en el ejemplo:
nCurrentPage:=HMG_HPDF_PageNo()
@ 030,200 HPDFPRINT nCurrentPage SIZE 10 COLOR BLACK RIGHT
@ 036,200 HPDFPRINT FechTex( DATE() ) SIZE 10 COLOR BLACK RIGHT
Algún detalle que me esté faltando ? Gracias.
------------------------------------------------------------------------------------------
The HaruPDF I feel great because I could do a format with more
control over data and a bit more "view", only found
2 further details.
* I use HB_OEMTOANSI function (msg) to display accents, ñÑ
and some other character. By passing the HaruPDF, I deployed something
different with the same function, Example: SÆbado, 13 de Abril de 2013
instead of Sábado.
* I use the HMG_HPDF_PageNo (), but does not display anything!
nor is putting it as in this example:
nCurrentPage:=HMG_HPDF_PageNo()
@ 030,200 HPDFPRINT nCurrentPage SIZE 10 COLOR BLACK RIGHT
@ 036,200 HPDFPRINT FechTex( DATE() ) SIZE 10 COLOR BLACK RIGHT
Some details that I'm missing? Thank you.
-------------------------------------------------------------------------------------------
control sobre los datos y un poco mas de "vista", solo que encontré
otros 2 detalles.
* Yo utilizo la función HB_OEMTOANSI(msj) para desplegar acentos, ñÑ
y algun otro caracter. Al pasarlos a la HaruPDF, me despliega algo
diferente con la misma función, Ejemplo: SÆbado, 13 de Abril de 2013
en vez de Sábado.
* Quiero utilizar la función HMG_HPDF_PageNo(), pero no despliega nada !
ni poniendola como viene en el ejemplo:
nCurrentPage:=HMG_HPDF_PageNo()
@ 030,200 HPDFPRINT nCurrentPage SIZE 10 COLOR BLACK RIGHT
@ 036,200 HPDFPRINT FechTex( DATE() ) SIZE 10 COLOR BLACK RIGHT
Algún detalle que me esté faltando ? Gracias.
------------------------------------------------------------------------------------------
The HaruPDF I feel great because I could do a format with more
control over data and a bit more "view", only found
2 further details.
* I use HB_OEMTOANSI function (msg) to display accents, ñÑ
and some other character. By passing the HaruPDF, I deployed something
different with the same function, Example: SÆbado, 13 de Abril de 2013
instead of Sábado.
* I use the HMG_HPDF_PageNo (), but does not display anything!
nor is putting it as in this example:
nCurrentPage:=HMG_HPDF_PageNo()
@ 030,200 HPDFPRINT nCurrentPage SIZE 10 COLOR BLACK RIGHT
@ 036,200 HPDFPRINT FechTex( DATE() ) SIZE 10 COLOR BLACK RIGHT
Some details that I'm missing? Thank you.
-------------------------------------------------------------------------------------------
- Attachments
-
- HaruPDF2.jpg (169.66 KiB) Viewed 13374 times
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
Re: Problema con HaruPDF
Hola
Ya encontré porque no funcionaba lo siguiente:
nCurrentPage:=HMG_HPDF_PageNo()
@ 044,200 HPDFPRINT HMG_HPDF_PageNo() SIZE 10 COLOR BLACK RIGHT
@ 044,200 HPDFPRINT nCurrentPage SIZE 10 COLOR BLACK RIGHT
Lo que pasa es que ambos valores son NUMERICOS,
y ningun valor numerico se "imprime" al usar la HaruPDF.
tuve que convertir a caracter y asi, si funciona.
@ nVeces+133,155 HPDFPRINT STR( HMG_HPDF_PageNo() )
Anexo 2 rutinas (reglas) que me ayudaron al momento del diseño del PDF.
---------------------------------------------------------------------------
I found it did not work the following:
nCurrentPage: = HMG_HPDF_PageNo ()
@ 044.200 HPDFPRINT HMG_HPDF_PageNo () RIGHT SIZE 10 COLOR BLACK
@ 044.200 HPDFPRINT nCurrentPage RIGHT SIZE 10 COLOR BLACK
What happens is that both values are NUMERIC,
and no numerical value is "printed" using the HaruPDF.
I had to convert to character and so, if it works.
@ NVeces +133.155 HPDFPRINT STR (HMG_HPDF_PageNo ())
Annex 2 routines (rules) that helped me when PDF design.
------------------------------------------------------------------
Ya encontré porque no funcionaba lo siguiente:
nCurrentPage:=HMG_HPDF_PageNo()
@ 044,200 HPDFPRINT HMG_HPDF_PageNo() SIZE 10 COLOR BLACK RIGHT
@ 044,200 HPDFPRINT nCurrentPage SIZE 10 COLOR BLACK RIGHT
Lo que pasa es que ambos valores son NUMERICOS,
y ningun valor numerico se "imprime" al usar la HaruPDF.
tuve que convertir a caracter y asi, si funciona.
@ nVeces+133,155 HPDFPRINT STR( HMG_HPDF_PageNo() )
Anexo 2 rutinas (reglas) que me ayudaron al momento del diseño del PDF.
---------------------------------------------------------------------------
I found it did not work the following:
nCurrentPage: = HMG_HPDF_PageNo ()
@ 044.200 HPDFPRINT HMG_HPDF_PageNo () RIGHT SIZE 10 COLOR BLACK
@ 044.200 HPDFPRINT nCurrentPage RIGHT SIZE 10 COLOR BLACK
What happens is that both values are NUMERIC,
and no numerical value is "printed" using the HaruPDF.
I had to convert to character and so, if it works.
@ NVeces +133.155 HPDFPRINT STR (HMG_HPDF_PageNo ())
Annex 2 routines (rules) that helped me when PDF design.
------------------------------------------------------------------
Code: Select all
//------------------------------------------------------------------------------
FUNCTION HPDFReglaH( nRenMM )
LOCAL i1
DEFAULT nRenMM:=4
FOR i1=1 TO 215
@ nRenMM,(000+i1)-1 HPDFPRINT IF(RIGHT(STR(INT(i1)),1)="0",ALLTRIM(STR(i1)), "") SIZE 6 COLOR BLACK
@ nRenMM,000+i1 HPDFPRINT LINE TO IF( RIGHT( STR( INT( i1 ) ),1 )="0",nRenMM+007, ;
IF( RIGHT( STR( INT( i1 ) ),1 )="5", nRenMM+005, nRenMM+4 ) ),000+i1 ;
PENWIDTH .1 COLOR GRAY
NEXT
RETURN( Nil )
FUNCTION HPDFReglaV( nColMM )
LOCAL i1
DEFAULT nColMM:=4
FOR i1=1 TO 280
@ 000+i1,nColMM-1 HPDFPRINT IF(RIGHT(STR(INT(i1)),1)="0",ALLTRIM(STR(i1)), "") SIZE 6 COLOR BLACK
@ 000+i1,nColMM HPDFPRINT LINE TO 000+i1, IF( RIGHT( STR( INT( i1 ) ),1 )="0", nColMM+007, ;
IF( RIGHT( STR( INT( i1 ) ),1 )="5", nColMM+005, nColMM+4 ) ) ;
PENWIDTH .1 COLOR GRAY
NEXT
RETURN( Nil )
//------------------------------------------------------------------------------
- Attachments
-
- HaruPDF3.jpg (106.04 KiB) Viewed 13298 times
-
- HaruPDF4.jpg (100.29 KiB) Viewed 13298 times
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
- danielmaximiliano
- Posts: 2612
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: Problema con HaruPDF
Gracias Andrés por compartir tus experiencias..
todavia no tengo la oportunidad de trabajar en la empresa con PDF.
todavia no tengo la oportunidad de trabajar en la empresa con PDF.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
-
- Posts: 388
- Joined: Wed Nov 21, 2012 7:14 pm
- Location: México
Re: Problema con HaruPDF
Hola...
Se ven bien los PDF, voy en estos días a empezar a ver este tema...
Gracias por compartir.
Polo
Se ven bien los PDF, voy en estos días a empezar a ver este tema...
Gracias por compartir.
Polo
Re: Problema con HaruPDF
Bom dia, em relação a acentuação alguma novidade ?
Hasa
Acentuação com a hmg_hpdf
Olá pessoal por um acaso alguem conseguiu solucionar o problema ?
Desde já agradeço por essa maravilhosa ferramenta.
---
Hola gente de la oportunidad que alguien podría resolver el problema?
Le doy las gracias por esta maravillosa herramienta
Hasa
Desde já agradeço por essa maravilhosa ferramenta.
---
Hola gente de la oportunidad que alguien podría resolver el problema?
Le doy las gracias por esta maravillosa herramienta
Hasa
[u]Moderator Notes[/u] (Pablo César) wrote:From this message below, was appended to an existing topic, which now both topics were unified..
Re: Acentuação com a hmg_hpdf
Ninguem ?, será que não tem solução ?
Hasa