cxGrid導出Excel貨幣符號問題

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;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章