Posted 7 January 2018, 12:37 pm EST
Using ActiveReports.v11, Version=11.2.10750.0, attempts to retrieve a worksheet from a workbook’s DDSheets collection in SpreadBuilder base on sheet name returns null. This worked in v10.1 and prior at least as far back as v6.
In a case where there is only one sheet in the DDSheets collection, this line of code will return the sheet:
DDSheet sheet = workbook.Sheets[0];
This line will not, and instead returns null:
DDSheet sheet = workbook.Sheets[name];
This line (as a quick way to confirm the correct name is being used) will also return null:
DDSheet worksheet = workbook.Sheets[workbook.Sheets[0].Name]