月
月冷无痕
Unregistered / Unconfirmed
GUEST, unregistred user!
var
xlApp,xlBook,xlSheet: variant;
begin
xlApp := CreateOleObject('Excel.Application');
xlApp.Visible := True;
xlBook := xlApp.Workbooks.Add;
xlSheet := xlBook.Worksheets['sheet1'];
xlApp.saveas('d:/xxx.xls');
end;
在执行 xlApp.saveas('d:/xxx.xls'); 出错 ;'Method saveas not supported by automation object'
xlApp,xlBook,xlSheet: variant;
begin
xlApp := CreateOleObject('Excel.Application');
xlApp.Visible := True;
xlBook := xlApp.Workbooks.Add;
xlSheet := xlBook.Worksheets['sheet1'];
xlApp.saveas('d:/xxx.xls');
end;
在执行 xlApp.saveas('d:/xxx.xls'); 出错 ;'Method saveas not supported by automation object'