sudip wrote:Hi,
I was looking for an application which can transfer data from grid to excel. MOL showed me an example (very well written) directly copied from his application. Thank you MOL.
I already used excel in my xHarbour apps. I modified slightly to make it HMG compatible. I got CopyToClipboard() function from this forum. Finally I made this application to share with you.
There is a file "excel.ch". Yes, I uploaded it for you in ShowExcel.zip.
Español:
Sudip, muchas gracias por tu trabajo!
Solo un pequeño comentario:
a la línea "cMemo += ExcelDt(mTemp)"
yo la reemplacé por "cMemo += dtoc(mTemp)"
ya que de esta forma exporta corretamente las fechas. Por ejemplo cuando están vacías u otros casos. Previamente to hice el seteo de la fecha:
SET DATE TO.... o como lo desee cada uno.
Saludos y muchas gracias.
Inglés power by Google.
Sudip, thank you very much for your work!
Just a small comment:
the line "cMemo + = ExcelDt (mTemp)
I replaced it with "cMemo + = dtoc (mTemp)
since this correctly exported date. For example, when they are empty or otherwise. Before I did the settings to the date:
SET DATE TO .... or as you like each.
Greetings and thank you very much.
Fernando Chirico.