We have tried to upgrad to the latest Dll 5.1.3 to handle processing smart tags for rows over 65K limit of excel 2003, the problem is we are encoutering a generic System.NullException on the following line but we only get this error if the data set containes over 65K records:
template.Process(template.Workbook.Worksheets["Data"].Index, false);
here is the complete code snippet:
var template = new WorkbookDesigner();
//template.Workbook.Open(inFile);
//template.Workbook.Open(new MemoryStream(fileBytes), FileFormatType.Excel2007Xlsm);
template.Workbook = new Workbook(new MemoryStream(fileBytes), new LoadOptions(LoadFormat.Xlsx));
//Insert data for each dataset
var nodata = false;
foreach(var dataSet in dataSets)
{
var pivotData = dataSet.Value.GetData(requestId, dataSet.Key);
if(pivotData.Count < 1)
{
nodata = true;
continue;
}
nodata = false;
template.SetDataSource(pivotData[0].GetClassName(), pivotData);
template.Process(template.Workbook.Worksheets["Data"].Index, false);
template.Workbook.Worksheets["Data"].AutoFitColumns();
}
You can test this with a excel template that has 1 smart tag that contains a repetition calculation.
TIA
Paul