delphi菜鸟请教,为什么不能打开我放在C盘根目录下的Running Report.xls文件? 20
beginexcelapplication1.Connect;excelapplication1.visible[0]:=true;excelapplication1.C...
begin
excelapplication1.Connect;
excelapplication1.visible[0]:=true;
excelapplication1.Caption:='服务报告Microsoft Excel';
Excelworkbook1.ConnectTo(excelapplication1.Workbooks.Add(emptyparam,0));
Excelapplication1.Workbooks.Open(c:\Running Report.xls);
end;
运行时提示:[Error] Unit1.pas(54): Undeclared identifier: 'c'
[Hint] Unit1.pas(43): Variable 'excelapp' is declared but never used in 'TForm1.ExcelApplication1NewWorkbook' 展开
excelapplication1.Connect;
excelapplication1.visible[0]:=true;
excelapplication1.Caption:='服务报告Microsoft Excel';
Excelworkbook1.ConnectTo(excelapplication1.Workbooks.Add(emptyparam,0));
Excelapplication1.Workbooks.Open(c:\Running Report.xls);
end;
运行时提示:[Error] Unit1.pas(54): Undeclared identifier: 'c'
[Hint] Unit1.pas(43): Variable 'excelapp' is declared but never used in 'TForm1.ExcelApplication1NewWorkbook' 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询