Hi - sorry for such a lame, newbie question, but your forum search feature doesn’t work. I’m trying to determine the number of Rows and Columns in worksheet, but I can’t seem to get the Columns. Here’s a code snippet. I’m able to open the file successfully and read the values and the value for Rows is correct, but the value for Columns is always 0.
license = new Aspose.Cells.License();
license.SetLicense(licenseFilePath);
loadOptions = new LoadOptions(LoadFormat.TabDelimited);
workbook = new Workbook(inputFilePath, loadOptions);
worksheet = workbook.Worksheets[0];
rows = worksheet.Cells.Rows.Count;
columns = worksheet.Cells.Columns.Count;
for (row = 0, column = 0; column < columns; column++)
{
cell = worksheet.Cells[row, column];
value = cell.Value.ToString();
}
Thanks for your help.