Page 1 of 1

Problem with EXCEL to DBF / Problema p/pasar de EXCEL a DBF

Posted: Mon Mar 04, 2013 7:42 pm
by CarlosRD
hola de nuevo a todos.

tengo un problemita al pasar datos de un archivo de excel a un dbf

SI EN EL OBJETO PONGO VISIBLE EN .F., EL PROCESO FUNCIONA PERFECTO, SOLO QUE EL ARCHIVO DE EXCEL, SE QUEDA EN MEMORIA, AUN QUE FISICAMENTE NO LO PUEDA VER.
SI LO DEJO EN .T., EL ARCHIVO DE EXCEL SE QUEDA ABIERTO.
NECESITO UNA INSTRUCCION PARA CERRAR EL ARCHIVO DE EXCEL Y NO SE QUEDE RESIDIENDO EN RAM.
AGREGO MI PRG CON LOS ARCHIVOS NECESARIOS.

***********************
HI ALL

I HAVE A LITTLE PROBLEM TO IMPORT DATA FROM EXCEL TO DBF
IF IN AN OBJET, I PUT VISIBLE IN .F., PROCESS WORKS PERFECT, BUT EXCEL FILE STAYS IN RAM.
IF I LET IT .T., EXCEL FILE STAYS OPEN
I NEED AN INSTRUCTION TO CLOSE EXCEL FILE AND TAKE IT OFF FROM RAM
HERE IS MY PRG WITH THE NECESSARY FILES

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Posted: Mon Mar 04, 2013 8:17 pm
by danielmaximiliano
Hola Carlos :
necesitas cerrar la planilla

Code: Select all

oExcel:Quit()

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Posted: Mon Mar 04, 2013 8:32 pm
by CarlosRD
hola daniel:
lo habia intentado, incluso con Close, pero el error es este:
Diapositiva1.JPG
Diapositiva1.JPG (16.1 KiB) Viewed 3748 times
danielmaximiliano wrote:Hola Carlos :
necesitas cerrar la planilla

Code: Select all

oExcel:Quit()

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Posted: Mon Mar 04, 2013 9:31 pm
by CarlosRD
hola otra vez:

daniel, problema resuelto.

estaba usando: oExcel:Quit(yx), considerando que en la variable yx contienia el nombre del archivo de excel.
quitando "yx", funciono perfecto, gracias.

*********************
daniel, solved problem.
i was using: oExcel:Quit(yx), where yx contains the name of excel file.
taking out "yx", it works perfect. thanks.

saludos / regards.

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Posted: Mon Mar 04, 2013 10:20 pm
by danielmaximiliano
Hola Carlos :
oExcel contiene el nombre de la planilla y todos los metodos para trabajar con ella.
el metodo :Quit() temina la misma pero no recuerdo si destruye el Objeto oExcel.

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Posted: Wed Mar 06, 2013 1:14 am
by luisvasquezcl
Hola colegas.
Para solucionar ese problemas debes invocar al objeto applicacion:

oExcel:Application:Quit

Con eso cierras excel.
Saludos cordiales,
Luis Vasquez

Re: Problem with EXCEL to DBF / Problema p/pasar de EXCEL a

Posted: Wed Mar 06, 2013 3:42 pm
by CarlosRD
hola luis:
gracias por el tip.
luisvasquezcl wrote:Hola colegas.
Para solucionar ese problemas debes invocar al objeto applicacion:

oExcel:Application:Quit

Con eso cierras excel.
Saludos cordiales,
Luis Vasquez