2012年8月14日 星期二

Word.Application調整 WORD 選項控制

當拼字檢查時,檢查文法 WordApplication.Options.CheckGrammarWithSpelling := False; 當輸入時,檢查拼字檢查 WordApplication.Options.CheckSpellingAsYouType := False; 當輸入時,檢查文法 WordApplication.Options.CheckGrammarAsYouType := False;

2012年6月21日 星期四

List 與 string.Join 用法

List tfs6code = new List(); foreach (KeyValuePair item in dFs6CodeList) { tfs6code.Add(item.Key); } //取得資料 sSQL = string.Format(@" select * from fss6add where fs6ordc = '{0}' ", txtfs6ordc.Text.Trim() ); sSQL = string.Format(sSQL + @" and fs6code in ({0}) order by fs6code ", "'" + string.Join("','", tfs6code.ToArray()) + "'"); DataSet ds = oDALcmch002_mgt.ExcuteToDataset(sSQL);

2012年5月30日 星期三

grep 指令紀錄

搜尋當前資料夾中,特定檔案內容中的文字 grep -i -L geduserfn *.4gl >chris -------------------------------------------------------------- 搜尋文字 不分大小寫 指出檔案路徑 關鍵字 指定副檔名 產生文字檔