W
woshiyaya
Unregistered / Unconfirmed
GUEST, unregistred user!
ExcelApplication1.Connect;
ExcelApplication1.Workbooks.Open ('g:/123.xls',
EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,0);
ExcelApplication1.worksheets[1].activate;
ExcelApplication1.ActiveSheet.Rows[1].Delete;
ExcelApplication1.SaveAs( 'g:/123.xls' );
ExcelApplication1.WorkBooks.Close;
ExcelApplication1.quit;
ExcelApplication1.Disconnect;
错误提示:
第6行提示: Undeclared identifier: 'activate'
第7行提示:Undeclared identifier: 'Rows'
第7行提示:'(' expected but ';' found
第9行提示:Not enough actual parameters
第10行提示: Incompatible types
谢谢指正
ExcelApplication1.Workbooks.Open ('g:/123.xls',
EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,0);
ExcelApplication1.worksheets[1].activate;
ExcelApplication1.ActiveSheet.Rows[1].Delete;
ExcelApplication1.SaveAs( 'g:/123.xls' );
ExcelApplication1.WorkBooks.Close;
ExcelApplication1.quit;
ExcelApplication1.Disconnect;
错误提示:
第6行提示: Undeclared identifier: 'activate'
第7行提示:Undeclared identifier: 'Rows'
第7行提示:'(' expected but ';' found
第9行提示:Not enough actual parameters
第10行提示: Incompatible types
谢谢指正