Dbf To Excel(Excel Functions)

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: Dbf To Excel(Excel Functions)

Post by mustafa »

Hola andrés:
Gracias por la aportación
Tu sample genera el mismo problema acentos y además la fecha está al reves

Saludos
Mustafa
*------------------------------------------------------------------------
Hello Andres:
Thanks for the contribution
Your sample generates the same problem accents and also the date is backwards

regards
Mustafa
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Dbf To Excel(Excel Functions)

Post by andyglezl »

Hola Mustafa

No me queda claro lo "de la fecha a reves"
En los casos de PDF y XPS si veo que la fecha como que se trunca.
Anexo ejemplos.
-------------------------------------------------------------------------------------

Hello Mustafa

It is not clear to me "from the date to the reverse"
In the cases of PDF and XPS if I see the date as truncated.
Annex example.

Ejemplos.png
Ejemplos.png (145.56 KiB) Viewed 4597 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: Dbf To Excel(Excel Functions)

Post by mustafa »

Hola andres:
Trabaja con el fichero "control.dbf" que está el
original correctamente.
Cuando generas el nuevo "control.XPS" y "control.Pdf"
ami no me sale correcto, mira la muestra.
Acentos y fechas
Saludos
Mustafa
*-------------------------------------------------------
Hello Andres:
Work with the file "control.dbf" which is the
original correctly.
When you generate the new "control.XPS" and "control.Pdf"
I do not get it right, look at the sample.
Accents and dates
regards
Mustafa
Attachments
Error.jpg
Error.jpg (205.94 KiB) Viewed 4594 times
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Dbf To Excel(Excel Functions)

Post by andyglezl »

Me sale igual que el ejemplo que envié anteriormente
solo que ahora los acentos no están bien. :?
Quizá se trate de alguna configuracion de Windows ???
O la forma como fueron creados los DBF ???
--------------------------------------------------------------------
I get the same as the example I sent earlier
Only now the accents are not right. :?
Maybe it's some Windows configuration ???
Or the way DBFs were created ???

Ejemplos2.png
Ejemplos2.png (76.63 KiB) Viewed 4579 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: Dbf To Excel(Excel Functions)

Post by mustafa »

Hola andres:
Tienes razón es muy raro ? , los prg están salvados en UTF-8
y con SET CODEPAGE TO UNICODE
Incluso he modificado un poco tu sample y el resultado es
el mismo.
Bueno espero que algún "Sabio" descubra lo que pasa je... je..
saludos
Mustafa

*----------------------------------------
Hello Andres:
Are you right it's very weird? , the prg are saved in UTF-8
and with SET CODEPAGE TO UNICODE
I have even modified your sample a bit and the result is
the same.
Well I hope that some "Sage" discover what happens he ... he ...
regards
Mustafa
Attachments
main.zip
(1.32 KiB) Downloaded 255 times
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Dbf To Excel(Excel Functions)

Post by andyglezl »

Seguí con las pruebas...
Y esto es lo que obtengo con estas modificaciones
(solo modifique el .prg)
------------------------------------------------------------------
I continued with the tests ...
And this is what I get with these modifications
(just modify the .prg)
CONTROL.DBF.xls.png
CONTROL.DBF.xls.png (299.75 KiB) Viewed 4520 times
main.rar
(1.13 KiB) Downloaded 247 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
SALINETAS24
Posts: 667
Joined: Tue Feb 27, 2018 3:06 am
DBs Used: DBF
Contact:

Re: Dbf To Excel(Excel Functions)

Post by SALINETAS24 »

Hola, creo que tengo algo.
Por aclarar.., a mi me funciona todo, los acentos, las "ñ", todo, pero cuando abro el fichero con la herramienta DBA..., me salen los registros que tienen estos caracteres con signos ilegibles, al contrario que ocurre con el fichero de Mustafa, que lo abro y se lee perfectamente. Pero cuando ejecuto la herramienta del cambiar, el mio sale perferto y el de Mustafa no.
Dicho esto creo que el KIT de la cuestión está en la codificación del programa que crea la DBF inicial.

Estas son las que yo utilizo.

Code: Select all

SET CENTURY ON
SET DATE FRENCH
SET NAVIGATION EXTENDED
SET LANGUAGE TO SPANISH   //-> Cargo el mi idioma
SET CODEPAGE TO UNICODE   // ->Cargo los Unicodes
SET DATE FORMAT TO 'dd/mm/yyyy'
SET EXCLUSIVE OFF
SET WRAP ON
SET DELETE ON
Y así me va de maravilla y sin problemas. Haced la prueba y ya me decís.

---- Y esto dice el Dr. Google que he dicho en Inglés..


Hi, I think I have something.
To clarify .., everything works for me, the accents, the "ñ", everything, but when I open the file with the DBA tool ..., I get the records that have these characters with illegible signs, unlike what happens with the Mustafa file, which I open and read perfectly. But when I execute the change tool, mine is perfect and Mustafa's is not.
That said I think the KIT of the question is in the coding of the program that creates the initial DBF.

These are the ones that I use.
Como dijo el gran pensador Hommer Simpson..., - En este mundo solo hay 3 tipos de personas, los que saben contar y los que no. :shock:
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: Dbf To Excel(Excel Functions)

Post by mustafa »

Hola amigos:
La conclusión que ha llegado el amigo SALINETAS24
creo que es muy parecida a la solución que aporto
en esta nueva corrección.
Creo que es la codificacion de la pagina de
REQUEST HB_CODEPAGE_ESWIN
HB_SetCodePage("ESWIN") mirando en esta Web encontre
un post de Isma Elias y Leopoldo Blancas que está
viewtopic.php?f=24&t=2822&hilit=dbf+excel&start=10
partiendo de esta solución aportada he modificado el proyecto
original y parece que funciona correctamente, es decir acento, las "Ñ"
las fechas he incluso asume el campo Memo con sus acentos.
Gracias por vuestra magnifica aportación SALINETAS24 - José Manuel Carbonell
y andyglezl - Andrés González López
Saludos
Mustafa
*------------------------Dr. google en ingles --------------------------------------------*
Hello friends:
The conclusion that the friend SALINETAS24 has arrived
I think it's very similar to the solution I bring
in this new correction.
I think it's the coding of the page of
REQUEST HB_CODEPAGE_ESWIN
HB_SetCodePage ("ESWIN") looking on this Web I found
a post by Isma Elias and Leopoldo Blancas that is
viewtopic.php?f=24&t=2822&hilit=dbf+excel&start=10
Based on this solution, I modified the project
original and it seems to work correctly, that is, accent, the "Ñ"
the dates I've even assumed the Memo field with its accents.
Thank you for your great contribution SALINETAS24 - José Manuel Carbonell
and andyglezl - Andrés González López
regards
Mustafa
Last edited by mustafa on Wed May 09, 2018 9:57 am, edited 1 time in total.
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: Dbf To Excel(Excel Functions)

Post by mustafa »

Aquí las modificaciones
Here the modifications
Regards
Mustafa
Attachments
Converter_Dbf_Excel_Pdf_2018_New.zip
(143.79 KiB) Downloaded 352 times
Imagen.jpg
Imagen.jpg (159.81 KiB) Viewed 4404 times
arroya2
Posts: 172
Joined: Thu Aug 06, 2009 7:16 am

Re: Dbf To Excel(Excel Functions)

Post by arroya2 »

Hola Mustafá
Hace mucho tiempo que no entraba en este foro y os quiero saludar a todos.

Me he bajado la aplicación "Converter_Dbf_Excel_Pdf_2018_New" y me da el siguiente error:
Error.jpg
Error.jpg (46.57 KiB) Viewed 2748 times
y no sé como solucionarlo.
Le agradecería me indique que estoy haciendo mal o a que puede ser debido.
Un saludo.
Rafael Pérez

Google Translator

Hello Mustafa
It has been a long time since I entered this forum and I want to greet you all.

I have downloaded the application "Converter_Dbf_Excel_Pdf_2018_New" and it gives me the following error:
Error.jpg
Error.jpg (46.57 KiB) Viewed 2748 times
and I don't know how to fix it.
I would appreciate it if you would tell me what I am doing wrong or what may be due.
A greeting.
Rafael Perez
Post Reply