好了,谢谢。
protected void th(string str,string str1)
{
int sheetIndex=0; //工作表索引
string searchString = str; //查找的字符串
Boolean caseSensitive=true; //是否完全匹配
Boolean exactMatch=true;
Boolean alternateSearch = true;
Boolean useWildcards = true;
Boolean includeCellText = true;
Boolean includeNotes = true;
Boolean includeTags = true;
int startRowIndex=0;
int startColumnIndex=0;
int foundRowIndex=100;
int foundColumnIndex=100;
string value;
value = FpSpread1.Search(sheetIndex, searchString, caseSensitive, exactMatch, alternateSearch, useWildcards, includeCellText, includeNotes, includeTags, startRowIndex, startColumnIndex,ref foundRowIndex,ref foundColumnIndex);
int aaa = foundRowIndex;
int bbb = foundColumnIndex;
FpSpread1.Sheets[0].Cells[aaa, bbb].Text = str1;
}
} |