0
嗨朋友, 我正在讀excel文件,在我的excel中有大約100行,我需要在int變量中獲得行號58?如何做到這一點我已經嘗試使用此代碼,但無法獲得行號?如何使用c#.net獲取行號在Excel中使用c#.net
Excel.Range rng = (Excel.Range) this.Application.ActiveCell;
//get the cell value
object cellValue = rng.Value;
//get the row and column details
int row = rng.Row;
int column = rng.Column;