Hi all,
I'm trying to export a Listview to an Excel2010-sheet.
Excel opens well, but then when I try to create the columnheaders, I got into problems
Look at the code below :
{create the columns}
for x := 0 to (lvGPMI.Columns.Count -1) do begin
//ShowMessage(lvGPMI.Columns.Items
tmp := lvGPMI.Columns.Items
Sheet.Cells[1, (x + 1)] := tmp; //'haha';
//Sheet.Cells[1, (x + 1)] := lvGPMI.Columns.Items
end;
When I put the caption of the ListView in Excel, it appears as some Chinese characters.
When I replace the tmp with 'haha', all works just fine.
How come the ListView-caption is not accepted as normal text, and the 'haha' is?
I really would like to know an answer to that.
TIA,
fic.