F
fzj
Unregistered / Unconfirmed
GUEST, unregistred user!
各位大侠:
我按以下方式调用EXCEL为什么老报错
ExcelApplication1.Connect;
//显示当前窗口:
ExcelApplication1.Visible[0]:=True;
//更改 Excel 标题栏:
ExcelApplication1.Caption := '应用程序调用 Microsoft Excel';
ExcelWorkBook1.ConnectTo(ExcelApplication1.Workbooks.Open('e:/mb.xls',EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,0)); end;
我按以下方式调用EXCEL为什么老报错
ExcelApplication1.Connect;
//显示当前窗口:
ExcelApplication1.Visible[0]:=True;
//更改 Excel 标题栏:
ExcelApplication1.Caption := '应用程序调用 Microsoft Excel';
ExcelWorkBook1.ConnectTo(ExcelApplication1.Workbooks.Open('e:/mb.xls',EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,EmptyParam,0)); end;