G
gery
Unregistered / Unconfirmed
GUEST, unregistred user!
createoleobject()需要什么控件?
编译出错
undeclared indentifier:'CreateOleObject'
是否要在程序开始
uses ....??
代码:
procedure TForm1.BitBtn2Click(Sender: TObject);
var ExcelApp: Variant;
begin
ExcelApp:= CreateOleObject( 'Excel.Application' );
ExcelApp.WorkBooks.Open( 'C:/My Documents/wnczp/demo.xls' );
ExcelApp.Visible := True;
ExcelApp.WorkSheets[1].Activate;
end;
编译出错
undeclared indentifier:'CreateOleObject'
是否要在程序开始
uses ....??