am trying to export the crystal report into pdf but am getting the follwing error
Logon failed.Details: ADO Error Code: 0xSource: Microsoft OLE DB Provider for SQL ServerDescription: Login failed for user 'sa'.SQL State: 42000Native Error: and this is my code ReportDocument pdfReport = new ReportDocument();
BptApplicationPrintrpt bpt = new BptApplicationPrintrpt();
bpt.Load(Server.MapPath("~/Reports/BptApplicationPrintrpt.rpt"));
// pdfReport.SetDatabaseLogon("amitjain", "password", @"AMITJAIN\SQL", "Northwind");
Response.Buffer = false;
Response.ClearContent();
Response.ClearHeaders();
bpt.SetParameterValue("Appno", clsMFields.ApplicationNo);
-->am getting error at this line bpt.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "Employees");
Response.End();
please help me.. please solve my problem