>I'm using the following code to change the server name in a Crystal Report.
>
>
>ReportSource = _ReportInfo.Report;
>
>LogOnInfo[0].ConnectionInfo.ServerName = _ReportInfo.LogonInfo.ServerName;
>LogOnInfo[0].ConnectionInfo.DatabaseName = _ReportInfo.LogonInfo.DatabaseName;
>LogOnInfo[0].ConnectionInfo.IntegratedSecurity = _ReportInfo.LogonInfo.IntegratedSecurity;
>
>if (! _ReportInfo.LogonInfo.IntegratedSecurity)
>{
> LogOnInfo[0].ConnectionInfo.UserID = _ReportInfo.LogonInfo.UserId;
> LogOnInfo[0].ConnectionInfo.Password = _ReportInfo.LogonInfo.Password;
>}
>
>
>The line that changes the server name take 30 seconds to run. Anyone know why this is?
I have the same problem and never found a solution. What I did notice though is if I change the server name back to a name I had already specified it works quickly. Odd that it's taking 30 seconds though - mine takes like 8 to 10 seconds...
ICQ 10556 (ya), 254117