Forums - C# Corner

Forum guidelines
Vasanth Natarajan

Vasanth Natarajan

  • 1.1k
  • 328
  • 3.3k

How to stop the crystal report Login page

Jul 17 2017 7:11 AM
 
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

Answers (3)