2012年8月14日 星期二
Word.Application調整 WORD 選項控制
當拼字檢查時,檢查文法
WordApplication.Options.CheckGrammarWithSpelling := False;
當輸入時,檢查拼字檢查
WordApplication.Options.CheckSpellingAsYouType := False;
當輸入時,檢查文法
WordApplication.Options.CheckGrammarAsYouType := False;
於
晚上11:39

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);
於
晚上11:21

訂閱:
文章 (Atom)