My Code
cryRpt.SetDatabaseLogon(UserName, Password, ServerName, DatabaseName);
string OutputPDFFileName = @"E:\temp\" + DateTime.Now.ToString("mmddyyyyHHMMss") + ".pdf";
cryRpt.DataSourceConnections[0].IntegratedSecurity = false;
crystalReportViewer1.ReportSource = cryRpt;
crystalReportViewer1.RefreshReport();
cryRpt.ExportToDisk(ExportFormatType.PortableDocFormat, OutputPDFFileName);
How to stop the DSN Login Screen