Posted 15 September 2025, 1:07 pm EST
We noticed that getUsedRange is returning rowCount -1 for a sheet with data. Is this a bug? Sample code below:
const URT = (GC.Spread.Sheets as any).UsedRangeType;
const usedData = sheet.getUsedRange(URT?.all ?? URT?.data); // URT.all
console.log("sheet data", sheet.getCsv(0, 0, 10, 10, "\n", ","), usedData.rowCount, usedData.colCount); // data for the sheet exists. rowCount is -1, colCount is 15