About DbSeek error (DTOS (g_fech_ini). T.) to Excel

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

About DbSeek error (DTOS (g_fech_ini). T.) to Excel

Post by jparada »

Hi, in testing I'm doing to generate a report in Excel error when compiling my mark on the following: DbSeek (DTOS (g_fech_ini). T.), annex image error.

Any help on why I get this error and how can I fix this.

Continuing with the same subject, as I am in the process of testing, I get errors (as mentioned), and when I close my user session or shut down my computer I get the dialog to save the file in Excel.

How can I unlock the Excel object, to avoid any memory although this is not viewing the program excel open.

Thank you

Greetings
Javier
Attachments
img02.jpg
img02.jpg (36.11 KiB) Viewed 2845 times
User avatar
luisvasquezcl
Posts: 1259
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: About DbSeek error (DTOS (g_fech_ini). T.) to Excel

Post by luisvasquezcl »

Hola Javier,
el mensaje de error indica que el problema está en los argumentos que estas pasando:

1. quita el segundo parametro, .T. , dentro de la funcion dtos
2. verifica que g_fech_ini sea un valor de fecha valido. Si g_fech_ini es un campo de fecha puedes verificar con day(g_fech_ini) > 0, si la funcion devuelve 0 no es válida o está vacia en caso contrario devolverá un número de 1 a 7.

Si creas el objeto excel y te sale error antes de hacerlo visible, sólo deberás abrir el administrador de tareas (CTRL+ALT+SUPR) y eliminar la tarea a mano.
Generalmente creo un array con los datos que voy a exportar a excel, asi me aseguro que los datos ya estan validados. es un poco más lento pero más seguro.
Espero te sirva,
Saludos cordiales
Luis Vasquez
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

Re: About DbSeek error (DTOS (g_fech_ini). T.) to Excel

Post by jparada »

Gracias por contestar Luis, realmente tuve un error, pues muy acostumbrado a Clipper, olvide hacer ventana.objeto.valor

Gracias

Saludos
Javier
User avatar
mol
Posts: 3774
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: About DbSeek error (DTOS (g_fech_ini). T.) to Excel

Post by mol »

jparada wrote:Hi, in testing I'm doing to generate a report in Excel error when compiling my mark on the following: DbSeek (DTOS (g_fech_ini). T.), annex image error.

Any help on why I get this error and how can I fix this.

Continuing with the same subject, as I am in the process of testing, I get errors (as mentioned), and when I close my user session or shut down my computer I get the dialog to save the file in Excel.

How can I unlock the Excel object, to avoid any memory although this is not viewing the program excel open.

Thank you

Greetings
Javier
Anything you can do, it's to call task manager and kill Excel process.
User avatar
mol
Posts: 3774
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: About DbSeek error (DTOS (g_fech_ini). T.) to Excel

Post by mol »

jparada wrote:Hi, in testing I'm doing to generate a report in Excel error when compiling my mark on the following: DbSeek (DTOS (g_fech_ini). T.), annex image error.
I think, it should look like that:
DbSeek(DTOS (g_fech_ini), .T.)
regards, Marek
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

Re: About DbSeek error (DTOS (g_fech_ini). T.) to Excel

Post by jparada »

Thanks Marek and Luis, I could solve this problem

Thanks

Greetings
Javier
Post Reply