New DLL's does not support old DLL's functions
Posted: Mon May 26, 2008 6:51 am
Hi,
I have download your new DLL's (SR_2008.05.23_D2005), but it gives error in the following
line in our code.
"Dim tableName As String = dataSource.DataTable.TableName"
Code
For Each dataSource As StiDataSource In rptNew.Dictionary.DataSources
Dim tableName As String = dataSource.DataTable.TableName
Dim dt As DataTable = dataSet.Tables(tableName)
dataSource.Alias = dt.ExtendedProperties("DisplayName").ToString
Next
In this line of code the datasource.DataTable is coming nothing, so this gave error me of
"object reference is not set an instance"
But in old DLL's this code works fine.
So can you guide me how to solve this issue.
Thanks in advance
I have download your new DLL's (SR_2008.05.23_D2005), but it gives error in the following
line in our code.
"Dim tableName As String = dataSource.DataTable.TableName"
Code
For Each dataSource As StiDataSource In rptNew.Dictionary.DataSources
Dim tableName As String = dataSource.DataTable.TableName
Dim dt As DataTable = dataSet.Tables(tableName)
dataSource.Alias = dt.ExtendedProperties("DisplayName").ToString
Next
In this line of code the datasource.DataTable is coming nothing, so this gave error me of
"object reference is not set an instance"
But in old DLL's this code works fine.
So can you guide me how to solve this issue.
Thanks in advance