S
Serena
Unregistered / Unconfirmed
GUEST, unregistred user!
我有一段程序
var ExcelApp: Variant;
begin
ExcelApp := CreateOleObject( 'Excel.Application' );
ExcelApp.WorkBooks.Add( mainform.excel_path+'模版01-1.xls');
ExcelApp.SaveAs(mainform.excel_path+'temp.xls');
就会报错, Method 'SaveAs' not support by automation object.
还有用到其他的一些命令也会出现这种错误.
var ExcelApp: Variant;
begin
ExcelApp := CreateOleObject( 'Excel.Application' );
ExcelApp.WorkBooks.Add( mainform.excel_path+'模版01-1.xls');
ExcelApp.SaveAs(mainform.excel_path+'temp.xls');
就会报错, Method 'SaveAs' not support by automation object.
还有用到其他的一些命令也会出现这种错误.