代码如下:
procedure TKXJSDAGDMLform.ToolButton1Click(Sender: TObject);
var
ls_file:string;
begin
if SaveDialog.Execute then
begin
ls_file:=SaveDialog.FileName;
end;
if (ls_file='') or (ls_file = nil) then exit;
if RadioButton1.Checked=true then
begin
SHEETDOCLIB.TSHEETDOCLIB.CopySheetToExcel(DocView2,ls_file);
end;
if RadioButton2.Checked=true then
begin
SHEETDOCLIB.TSHEETDOCLIB.CopySheetToExcel(DocView3,ls_file);
end;
Borland.Delphi.ShellAPI.ShellExecute(0, 'open', ls_file, '', '', Borland.Delphi.Windows.SW_SHOW);
end;
问题是:不能导出全部内容,最后一列不能导出。 |