Crystal Reports For .net - Framework 2.0

string tempPath = Path.GetTempPath(); foreach (var file in Directory.GetFiles(tempPath, "*.rpt"))

Unlike modern ORMs, Crystal holds connection details inside the .rpt file. Pulling from a config file requires iterating tables: crystal reports for .net framework 2.0

crystalReportViewer1.ReportSource = reportDocument; crystalReportViewer1.DataBind(); For backend services or batch jobs, avoid the viewer entirely. Export directly to PDF or Excel from ReportDocument : string tempPath = Path

try File.Delete(file); catch