Note: would have been nice if you mentioned that you did a cross posting (https://www.lazarusforum.de/viewtopic.php?f=15&t=13272&sid=cc4f1efec55cbe2d476b20b8635d9ad5) from the German forum.Oh, sorry. I will do the next time. I didn't know that the forums belong together.
Note: would have been nice if you mentioned that you did a cross posting (https://www.lazarusforum.de/viewtopic.php?f=15&t=13272&sid=cc4f1efec55cbe2d476b20b8635d9ad5) from the German forum.Oh, sorry. I will do the next time. I didn't know that the forums belong together.
I think your problem is that you assign a string value to Excel cell.
Right! Then it might indeed be fixed with my recent changes to ComObj, because the conversion of AnsiString variables to WideString did not work correctly.
As a workaround you could simply cast your string to WideString (not UnicodeString) when assigning the grid's cell to the worksheet's:
app_excel.workbooks[1].sheets[1].cells[row+1, col+1] := WideString(grid.cells[col, row]);
Right! Then it might indeed be fixed with my recent changes to ComObj, because the conversion of AnsiString variables to WideString did not work correctly.
As a workaround you could simply cast your string to WideString (not UnicodeString) when assigning the grid's cell to the worksheet's:
app_excel.workbooks[1].sheets[1].cells[row+1, col+1] := WideString(grid.cells[col, row]);
Thats it! With Widestring it works.