cxgrid导出excel

uses cxexportgrid4link;


var
  SaveDialog: TSaveDialog;
begin
  SaveDialog:=TSaveDialog.Create(nil);
  with SaveDialog do
  begin
    Filter := '*.xls|*.xls';
    if Execute then
     begin
       ExportGrid4ToExcel(FileName,vgrid,true,true,true,'xls');
     end;
  end;
  SaveDialog.Free;
end;

posted on 2009-07-23 18:05  martian6125  阅读(76)  评论(0编辑  收藏  举报