FMXLIVEGRID EXPORT ERROR

Hi,
I have a grid where my column number 1 is a link that allows a click to perform an action.
This link is derived from an HTML tag ('<a href="0"> <font color = "% s">% s </font> </a>') that transforms it into the corresponding value to display in the table.
Up until this moment, everything works fine

Now I want to export.
I can only export well to XLS and HTML.

My problem is: When I export to text (.txt/ascii) or to (.csv) the HTML tag appears, not the value for that tag

When i export to .XLS i use "TTMSFMXGridExcelIO" and works fine.

When i export to .CSV, .HTML(works fine), TXT/ASCII I use the unit "FMX.TMSGridData"
and I do:
TMSFMXLiveGrid.SaveToCSV(SaveDialog.FileName);
TMSFMXLiveGrid.SaveToHTML(SaveDialog.FileName);
TMSFMXLiveGrid.SaveToASCII(SaveDialog.FileName);

How i can export well to .CSV and .TXT?

Best Regards 

Hi,


The grid exports all the text, because when importing the same files, you want the HTML text to be rendered and not lose the tags. You can override this behaviour by implementing the OnSaveCell and using the following code (requires FMX.TMSUtils unit)



procedure TForm1.TMSFMXLiveGrid1SaveCell(Sender: TObject; Col, Row: Integer;
  var Value: string);
begin
  Value := TTMSFMXUtils.HTMLStrip(Value);
end;

Ok, thanks