Cannot set PasW field of crystal report table ???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all

I am not able to set the PAssword field of a tables logInfo structure ???

I do it as follow :

For Each crTable In rptDoc.Database.Tables
crReportTabeLoginfo = crTable.LogOnInfo
crReportTabeLoginfo.ConnectionInfo = crConnectionInfo
crReportTabeLoginfo.ConnectionInfo.Password = "admin"
crTable.ApplyLogOnInfo(crReportTabeLoginfo)
Next

if I check afterwards the Passwor field, it is still empty and I ma even not
able to force it within the Watch window. IS it a readonly field ??

Thnaks for help
regards
 
I forgot to tell you that I am using the embeded crystal assemblies of VS2003
Report template have been made withinh crystal dev 7.0 developer edition
environement
 
Some more information,

I have seen that inside my report , there is an ODBC linked to the initial
SQL server databased by using SQL identfication mode.
Then when I run that report from my application, the login failed becasue
the initial sql identification credential has changed.

So what I am trying to do is to dynamically modifying the SQL credential in
order to be able to access properly when printing directly.

I have made the test with the Crystal viewer and I get prompt with the Login
Windows, the I noticed that wrong user and passwor is set, this comes from
initial report, by manually chage it to correct one works after words...

How to perform this through code

regards
serge
 
Back
Top