可以采用文本文件作为中转
procedure ExcelSheetSaveAsTextFile(ExcelFile, TextFile: string; SheetName: string);
var
ExcelApp: Variant;
begin
ExcelApp := CreateOleObject('Excel.Application');
ExcelApp.Visible := False;
ExcelApp.DisplayAlerts := False;
try
ExcelApp.WorkBooks.Open(ExcelFile);
if SheetName <> '' then
ExcelApp.ActiveWorkBook.Sheets[SheetName].Select;
ExcelApp.ActiveSheet.SaveAs(TextFile, xlText);
finally
ExcelApp.ActiveWorkBook.Saved := True;
ExcelApp.WorkBooks.Close;
ExcelApp.Quit;
ExcelApp := Unassigned;
end;
end;