Page 3 of 4

Re: Dbf To Excel(Excel Functions)

Posted: Fri May 04, 2018 1:22 pm
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

Re: Dbf To Excel(Excel Functions)

Posted: Fri May 04, 2018 2:32 pm
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 4648 times

Re: Dbf To Excel(Excel Functions)

Posted: Fri May 04, 2018 3:21 pm
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

Re: Dbf To Excel(Excel Functions)

Posted: Fri May 04, 2018 8:40 pm
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 4630 times

Re: Dbf To Excel(Excel Functions)

Posted: Sat May 05, 2018 10:37 am
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

Re: Dbf To Excel(Excel Functions)

Posted: Sun May 06, 2018 9:14 pm
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 4571 times
main.rar
(1.13 KiB) Downloaded 249 times

Re: Dbf To Excel(Excel Functions)

Posted: Mon May 07, 2018 8:05 pm
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.

Re: Dbf To Excel(Excel Functions)

Posted: Tue May 08, 2018 12:02 pm
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

Re: Dbf To Excel(Excel Functions)

Posted: Wed May 09, 2018 9:03 am
by mustafa
Aquí las modificaciones
Here the modifications
Regards
Mustafa

Re: Dbf To Excel(Excel Functions)

Posted: Sun Aug 30, 2020 8:46 am
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 2799 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 2799 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