cxGrid导出到Excel,对于Currency类型总是加上了货币符号,可以修改导出文件设置来去掉:

在cxXLSExport.pas文件中,修改:

procedure TcxXLSExportProvider.SetCellDataCurrency(const ACol, ARow: Integer;
  const AValue: Currency);
begin
  if xlsCheckPos(ACol, ARow) then
    //FCells.SetCellDataCurrency(ACol, ARow, AValue);
    FCells.SetCellDataDouble(ACol, ARow, AValue);
end;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2021-10-09
  • 2021-10-17
  • 2021-11-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-02-03
  • 2022-12-23
相关资源
相似解决方案