In your DEMO2 I have no modified your PRG (there's command HPDFDOC). PRINTDOC is for my previews files with my solution for Euro. After I must to modified all sources command PRINT with prefix HPDF... very very long work.Pablo César wrote:What I could see for at begining the right command is:Italia1 wrote:I remember that Euro is inserted in almost all the fonts in Windows (I remember as update). I try this solution that's it's ok for me:
Code: Select all
SET PRINTDOC ENCODING TO "WinAnsiEncoding"
SET HPDFDOC ENCODING TO
This command is for hmg_harupdf and you will find at C:\HMG.3.2\hfcl\Include\hfcl_hmg_hpdf.ch
Underline and italic in PDF seems not work
Moderator: Rathinagiri
Re: Underline and italic in PDF seems not work
I use the great HMG3.2(stable). Have i nice international HMG to everyone!
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Underline and italic in PDF seems not work
I see... this the tipical problem to previous release which I tried to avoid... but I will explain you. This error happen because you need to copy hfcl_hmg_hpdf.ch in twice place for good building... very strange but is because hfcl folder was created in order to keep separated these libs from hmg libs. Which I considere the same, but probably Rathinagiri shall re-evaluate this question like as is being made with BosTaurus lib. But for now, please take this file hfcl_hmg_hpdf.ch from my hfcl_include.rar attached file and copy in:Italia1 wrote:I never re-build a lib I try to put new HMG_HPDF.PRG file in project butfatal error: hpdfcfg.h: No such file or directory - compilation terminated.
C:\HMG.3.2\hfcl\Include
and
C:\HMG.3.2\Include
Duplicity... but at least works for building compiling...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Underline and italic in PDF seems not work
As a far I know, this command SET HPDFDOC ENCODING TO belongs to hmg_hpdf fro long time at least I know since hmg.3.0.46 version...Italia1 wrote:In your DEMO2 I have no modified your PRG (there's command HPDFDOC). PRINTDOC is for my previews files with my solution for Euro. After I must to modified all sources command PRINT with prefix HPDF... very very long work.
In demo.prg is also explaining. See HMG_HPDF_Doc.pdf file.
I made in base of my demo2.prg and added:
Code: Select all
Function Main()
SELECT HPDFDOC "sample.pdf" PAPERLENGTH 300 PAPERWIDTH 300 LOG
START HPDFDOC
START HPDFPAGE
SET HPDFDOC ENCODING TO "WinAnsiEncoding"
@ 10,20 HPDFPRINT "I want Euro sign here: "+CHR(128)
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: Underline and italic in PDF seems not work
My first approach to THE GREATH HMG, and I look it every day, is the HMG Reference on hmgdoc/data/ and in Print System (on the left) ther's the PRINT commandPablo César wrote:As a far I know, this command SET HPDFDOC ENCODING TO belongs to hmg_hpdf fro long time at least I know since hmg.3.0.46 version...Italia1 wrote:In your DEMO2 I have no modified your PRG (there's command HPDFDOC). PRINTDOC is for my previews files with my solution for Euro. After I must to modified all sources command PRINT with prefix HPDF... very very long work.
In demo.prg is also explaining. See HMG_HPDF_Doc.pdf file.
Peraphs I learned from a dated reference or I look 2 print systems and I preferred the command PRINT and not HPDFPRINT
Thanks for explain compiling problem. I have 3.2.0(Stable).
This forum it's great... Grande!
EDIT:
It's correct dear Pablo César: direct put CHR(128) in PRG make € sign. Load from DB no. And I must use my STRAN() solution.
I use the great HMG3.2(stable). Have i nice international HMG to everyone!
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Underline and italic in PDF seems not work
Well seems you have all your questions attended were waiting for a bit time.
Ok, I am happy you got it. For DB the only way is translating to UNICODE mode, this is still without natural solution due DBF been written in ANSI mode. This is Harbour, Clipper feature. Who know if Harbour creators could make a new option for UNICODE writing...Italia1 wrote:It's correct dear Pablo César: direct put CHR(128) in PRG make € sign. Load from DB no. And I must use my STRAN() solution.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Underline and italic in PDF seems not work
Please note, updated version of HMG_HPdf at: viewtopic.php?p=33662#p33662
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- mustafa
- Posts: 1162
- Joined: Fri Mar 20, 2009 11:38 am
- DBs Used: DBF
- Location: Alicante - Spain
- Contact:
Re: Underline and italic in PDF seems not work
Hola amigos:
Les presento un sample con dos alternativas de
impresión PRINT y HPDFPRINT en Pdf
El sample consta de una Empresa ficticia de Transporte
que tiene que generar etiquetas para los bultos que se envian
entre zonas de España,cada Población tiene un Código Postal
que está asociado a cada Ciudad ejemplo 08-Barcelona , 28-Madrid
Por lo Tanto si el origen es Barcelona y el Destino es Madrid, tenemos
que generar una etiqueta que indentifique cada Ciudad entonces seria
08 28 luego tenemos los Servicios que están relacionados con la
rapidez de la entrega ejemplo 01 |<-Normal 24h , 05 |<-Mediodia etc.
Nuestro Nuevo Código de Barras seria :--> 082805 + 7 números aleatorios
un total de 13 números ejemplo:---> 0828052345672 con el programa
HMG_Zebra, generó este código que siempre es igual como la cantidad de
paquetes, coloco los Portes Debidos o Pagados y Datos de Remitente
y Consignatario.
Atención, No es un codigo de Barras tipo EAN , solo es un codigo de Barras
para Paqueteria.
Espero que les pueda servir
Saludos
Mustafa
*--------------------------------------------------------------------*
Hello friends :
I present a sample with two alternative
PRINT and print Pdf HPDFPRINT
The sample consists of a fictitious Transportation Company
you have to generate labels for packages that are sent
between areas of Spain , each population has a Postal Code
that is associated with each 08- city example Barcelona, ??Madrid 28
Whether at the origin destination is Barcelona and Madrid, we have
to generate a label that would then City 's identification of each
08 28, then we have the services that are related to the
speed of delivery example, 01 |<-Normal 24h , 05 |<-Mediodia etc.
Our new Code would Bars : -> 082805 + 7 random numbers
A total of 13 sample numbers --- > 0828052345672 with the program
HMG_Zebra , generating this code is always the same as the amount of
packs , I place the Due and Paid Data Ports or Sender
and Consignee .
Attention, Not a EAN barcode type , it's just a bar code
for Parcel .
I hope I can serve them
regards
Mustafa
Les presento un sample con dos alternativas de
impresión PRINT y HPDFPRINT en Pdf
El sample consta de una Empresa ficticia de Transporte
que tiene que generar etiquetas para los bultos que se envian
entre zonas de España,cada Población tiene un Código Postal
que está asociado a cada Ciudad ejemplo 08-Barcelona , 28-Madrid
Por lo Tanto si el origen es Barcelona y el Destino es Madrid, tenemos
que generar una etiqueta que indentifique cada Ciudad entonces seria
08 28 luego tenemos los Servicios que están relacionados con la
rapidez de la entrega ejemplo 01 |<-Normal 24h , 05 |<-Mediodia etc.
Nuestro Nuevo Código de Barras seria :--> 082805 + 7 números aleatorios
un total de 13 números ejemplo:---> 0828052345672 con el programa
HMG_Zebra, generó este código que siempre es igual como la cantidad de
paquetes, coloco los Portes Debidos o Pagados y Datos de Remitente
y Consignatario.
Atención, No es un codigo de Barras tipo EAN , solo es un codigo de Barras
para Paqueteria.
Espero que les pueda servir
Saludos
Mustafa
*--------------------------------------------------------------------*
Hello friends :
I present a sample with two alternative
PRINT and print Pdf HPDFPRINT
The sample consists of a fictitious Transportation Company
you have to generate labels for packages that are sent
between areas of Spain , each population has a Postal Code
that is associated with each 08- city example Barcelona, ??Madrid 28
Whether at the origin destination is Barcelona and Madrid, we have
to generate a label that would then City 's identification of each
08 28, then we have the services that are related to the
speed of delivery example, 01 |<-Normal 24h , 05 |<-Mediodia etc.
Our new Code would Bars : -> 082805 + 7 random numbers
A total of 13 sample numbers --- > 0828052345672 with the program
HMG_Zebra , generating this code is always the same as the amount of
packs , I place the Due and Paid Data Ports or Sender
and Consignee .
Attention, Not a EAN barcode type , it's just a bar code
for Parcel .
I hope I can serve them
regards
Mustafa
- Attachments
-
- screenshot.jpg (164.1 KiB) Viewed 10186 times
-
- Project_PRINT.zip
- (561.47 KiB) Downloaded 456 times
-
- Project_HPDFPRINT.zip
- (549.71 KiB) Downloaded 579 times
Last edited by mustafa on Sat Apr 19, 2014 12:07 pm, edited 1 time in total.
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Underline and italic in PDF seems not work
Very nice sample Mustafa,mustafa wrote: Hello friends :
I present a sample with two alternative
PRINT and print Pdf HPDFPRINT
thanks to share
Viva HMG
Viva INTERNATIONAL HMG
- mustafa
- Posts: 1162
- Joined: Fri Mar 20, 2009 11:38 am
- DBs Used: DBF
- Location: Alicante - Spain
- Contact:
Re: Underline and italic in PDF seems not work
As salamu alaikum Esgici
Thanks friend, I have learned a lot from you
a hug
Mustafa
Thanks friend, I have learned a lot from you
a hug
Mustafa
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Underline and italic in PDF seems not work
Muy bueno tu trabajo, Mustafa. Felicitaciones y gracias por compartir.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein