Hi Don
We currently have SAP Crystal Reports Runtime for .NET Framework V13.0.13.1597 and referencing the Crystal Reports .NET SDK in a Visual Studio 2013 environment on a Windows 8.1 platform.
I have gone through the whole Developer Guide and tried all the relevant techniques for setting the logon credentials including answering my own query above:
1) Set CrystalDecisions.CrystalReports.Engine.ReportDocument.DataSourceConnections.Password by executing the following code:
DataSourceConnections dataSourceConnections = Report.DataSourceConnections;
IConnectionInfo connectInfo = dataSourceConnections[0];
connectInfo.SetConnection("Server", "DBName", "UserId", "Password");
Having done this, we can inspect the report object's properties and verify that all the logon data is held by the object. However, this logon data is not utilized by the ReportEngine, when accessing the database to populate the Dynamic Parameter with values from the database.
So we see a dialogue come up in the Windows Report Viewer titled "Enter Parameter Values" then the parameter name (ProductClass) and Server Name, User Name, Password, Use Single SignonKey. Completing the User Name and Password fields and clicking OK, proceeds to present the proper parameter UI and the report runs normally thereafter.
So the question remains:
2) Where/how in code, can I pass the dynamic parameter the logon properties it needs so the user doesn't get prompted for them at runtime in a C# solution?
Trust that clarifies the problem.
David