Any ideas what could bring this error about in such a spcecific circumstance? I use the same code for Multiple datasets or single. Here is a pseudo-code example of the two:
For single dataset
Code: Select all
Report.ScriptLanguage = Stimulsoft.Report.StiReportLanguageType.VB
Report.IsModified = False
Report.RegData("DataSet", grdResults.DataSource)
Report.Load(strFileName)
Try
If btnDesign.Checked = True Then
Report.Design()
ElseIf btnPreview.Checked = True Then
Report.Show()
Else
Exit Sub()
End If
Catch
End Try
Code: Select all
Report.ScriptLanguage = Stimulsoft.Report.StiReportLanguageType.VB
Report.IsModified = False
dim i as int = 0
While i < dctDatasets.Count
Report.RegData("DataSet_" & i.tostring, dctDatasets(i))
I+=1
End While
Report.Load(strFileName)
Try
If btnDesign.Checked = True Then
Report.Design()
ElseIf btnPreview.Checked = True Then
Report.Show()
Else
Exit Sub()
End If
Catch
End Try