Disabling Crystal login
-
Hi I was wondering, is it possible to disable the logon screen when using crystal reports. I would like my app to logon the user automatically. Is this possible and if so how would I go about this? Kind Regards F8
-
Hi I was wondering, is it possible to disable the logon screen when using crystal reports. I would like my app to logon the user automatically. Is this possible and if so how would I go about this? Kind Regards F8
Hi, if you are using CrystalDecisions.CrystalReports.Engine.ReportDocument you can set user name and password with the property DataSourceConnections[0] with method SetConnection. For explample:
rpt.DataSourceConnections[0].SetConnection(server, connection.CatalogName, connection.UserId, connection.Password);
kind regards [edit]you should do this before you send the ReportDocument to CrystalReportViewer. ;-)[/edit]