匯出固定的excel

2021-05-24 06:41:01 字數 906 閱讀 6463

string sp = file.separator;

string templatepath = corestaticmanager.getfileroot() + "system" + sp + "template" + sp + "aaaas.xls";

string fullmyfilename = corestaticmanager.getfileroot() + "temp" + sp + "system" + sp + "bom" + sp + math.random() +".xls";

fileutil.copyfile(templatepath, fullmyfilename, true);

file destfile = new file(fullmyfilename);

/*workbook book = workbook.getworkbook(destfile);

writableworkbook wwbook = workbook.createworkbook(destfile, book);

workbook wbb = workbook.getworkbook(new file(filepath + filename));

writableworkbook wb1 = workbook.createworkbook(new file(filepath + filename), wbb); */

fileinputstream in = new fileinputstream(destfile);

workbook book = workbook.getworkbook(in);

writableworkbook wwbook = workbook.createworkbook(destfile, book);

這裡匯出的是 固定資料夾裡面的檔案,導到固定的地方去

匯出到EXCEL(列不固定)

function cov str string string varss string begin if str then result ss while pos str 0 do begin ss ss copy str,1,pos str 1 delete str,1,pos str end s...

excel表頭固定

當我們編輯過長或過寬的excel工作表時,需要向下或向上滾動螢幕。這時,表頭也會相應滾動,不能在螢幕上顯示,於是我們不清楚要編輯的資料對應 於表頭的哪乙個資訊。按下列方法,可以使表頭鎖定,始終位於螢幕上的可 視區域。首先選定要鎖定的表頭,如果我們要將圖中的 1 3行 鎖定,那麼單擊a4單 元格,然後...

匯入excel,格式固定

response.charset utf 8 session.codepage 65001 num request num invoicenumber request invoicenumber invoicedate request invoicedate customer request cus...