在c++ builder中,用excel控件编程,怎么知道excel中有几条行排下写了东西了

在c++ builder中,用excel控件编程,如何知道excel中有几条行排上写了东西了如题,在c++ builder中,用excel控

在c++ builder中,用excel控件编程,如何知道excel中有几条行排上写了东西了
如题,在c++ builder中,用excel控件编程,如何知道excel中有几条行排上写了东西了
[解决办法]

    // 行数
    int nRowCount = ExcelWorksheet1->get_UsedRange(1)->Rows->get_Count();
    // 列数
    int nColCount = ExcelWorksheet1->get_UsedRange(1)->Columns->get_Count();