aardio 操作 EXCEL

admin2021-04-17  92

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://www.aardio.net/read-170.html
最新回复(0)