1、我想同时在memo中显示不同的颜色,比如一段文件的为黑色,一段文字为红色,有什么方法吗?
2、我使用DELPHI自带的EXCEL组件,获取数据自动保存EXCEL文件,当我保存了多个EXCEL文件后,我打开其中一个,会连同多个一起打开,想不出来为什么,请教大家了  ExcelApplication_Report.Connect ;
  ExcelWorkbook_Report.ConnectTo(ExcelApplication_Report.Workbooks.Add(EmptyParam,0));
  ExcelWorksheet_Report.ConnectTo(ExcelApplication_Report.Sheets[1] as _Worksheet);
   .......
  for  SampleNum:=6 to High(ArraysForce) do
  begin
    //  Application.ProcessMessages ;
    if Terminated then Break ;
    ExcelWorksheet_Report.Cells.Item[SampleNum,1]:=inttostr(SampleNum-3);
    ExcelWorksheet_Report.cells.Item[SampleNum,3]:=ArraysForce[SampleNum-3];
    ExcelWorksheet_Report.cells.Item[SampleNum,2]:=ArraysStroke[SampleNUm-3];
    npercent:=SampleNum;
    synchronize(SHowPercent)
  end;
   ................
   ExcelWorkbook_Report.Saveas(pathstr+'.\'+FilesStr+'.\'+NameStr+'.xls',xlNormal,'','',false,false, xlNoChange, xlLocalSessionChanges, EmptyParam,EmptyParam, EmptyParam,0,0);
   ExcelWorkbook_Report.Close;
  ExcelApplication_Report.Disconnect ;