aardio 操作 EXCEL

admin2021-04-17  3.0K+

import com.excel;

var excelServer;
var oBook ; 
var oSheet ; 

excelSever = com.excel(true);
oBook = excelSever.WorkBooks.Add();
oSheet = oBook.Worksheets(1);
excelSever.Visible = true;
excelSever.windowState = -4140;

oSheet.Cells(1,1).value2 = "aaaa";
oSheet.Cells(1,2).value2 = 34;

oBook.SaveAs( io.fullpath("E:\Test\aardio\111\aaa.xls"));
oBook.close();

excelSever.Quit();
转载请注明原文地址: https://aardio.net/read-170.html
最新回复(0)
COMActiveX(com)
COM/ActiveX(com)