R
runningdog
Hi,
I'm trying to set the servername and database for an untyped report at
runtime.
It seems I should do something like the following.
Dim Table As Table
Dim LogonInfo As New TableLogOnInfo
For Each Table In reportDocument.Database.Tables
LogonInfo = Table.LogOnInfo
LogonInfo.ConnectionInfo.ServerName = ConnectString.DataSource
LogonInfo.ConnectionInfo.DatabaseName = ConnectString.InitialCatalog
Table.ApplyLogOnInfo(LogonInfo)
Next
However I get the following error:
:Value of type 'CrystalDecisions.Shared.TableLogOnInfo' cannot be converted
to 'CrystalDecisions.Shared.TableLogOnInfo'.
Can someone point me in the right direction?
TIA Steve
I'm trying to set the servername and database for an untyped report at
runtime.
It seems I should do something like the following.
Dim Table As Table
Dim LogonInfo As New TableLogOnInfo
For Each Table In reportDocument.Database.Tables
LogonInfo = Table.LogOnInfo
LogonInfo.ConnectionInfo.ServerName = ConnectString.DataSource
LogonInfo.ConnectionInfo.DatabaseName = ConnectString.InitialCatalog
Table.ApplyLogOnInfo(LogonInfo)
Next
However I get the following error:
:Value of type 'CrystalDecisions.Shared.TableLogOnInfo' cannot be converted
to 'CrystalDecisions.Shared.TableLogOnInfo'.
Can someone point me in the right direction?
TIA Steve