Hi. I am using Report path in the .cs file as follows...but after exporting report, my current directory changes to exporting report and after this, generating a report an "Report Load Failed" Message coming...what should i do..
string cwd = System.IO.Directory.GetCurrentDirectory();
if (cwd.EndsWith("\\bin\\Debug"))
{
cwd = cwd.Replace("\\bin\\Debug", "\\AuditReports\\Audit.rpt");
}
else
{
cwd += "\\AuditReports\\Audit.rpt";
}
ReportDocument reportDocument = new ReportDocument();
reportDocument.Load(cwd);