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
"Conbine Guard" wrote:
U use visual studio 2003? why you use the DB tools
"serge calderara" <se************ @discussions.mi crosoft.com脨麓 脠毛脧没脧垄脨 偯幟:C7******* *************** ************@mi crosoft.com...
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
crReportTabeLog info = crTable.LogOnIn fo
crReportTabeLog info.Connection Info = crConnectionInf o
crReportTabeLog info.Connection Info.Password = "admin"
crTable.ApplyLo gOnInfo(crRepor tTabeLoginfo)
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