cOld:= hb_cdpSelect("ESWIN") // ESWIN o Portuguese cdp
...
// your code
..
hb_cdpSelect(cOld)
cFileXls := "d:\backups\onedrive\Area de trabalho\test.xlsx" //name of folder contais accent in "A", but i could'nt post here because page crashes when click submit.
oXlsx := TDrXlsx():New()
IF oXlsx:CreateFile( cFileXls ) <> 0 // here that is ok, it returns 0
? "Não foi possível criar o arquivo, pode ser que esteja aberto em outro programa!"
RETURN( .F. )
ENDIF
oXlsx:WriteString(0,0,"Testing)
oXlsx:Close()
? File( cFileXls ) // .F. - The file was not created??
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 36 guests