RAHUL KESHRI

RAHUL KESHRI

  • NA
  • 62
  • 8.7k

Crystal Report Exception

Jun 22 2014 3:09 AM
How to get rid off this Exception?
 
 
An exception of type 'CrystalDecisions.CrystalReports.Engine.LogOnException' occurred in CrystalDecisions.ReportAppServer.DataSetConversion.dll but was not handled in user code
Database logon failed.
 
Plz help. Its urgent. (Getting this Exception in Line no: 3)
 
case "XLSD":
{
crs.ReportDocument.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.ExcelRecord, Server.MapPath("/Files/") + Profile.CRExportFile + ".xls");
crs.ReportDocument.Close();
crs.ReportDocument.Dispose();
crs.Dispose();
Response.Redirect("/files/" + Profile.CRExportFile + ".xls");
break;
}
 
 
 
 

Answers (2)