Logon Failed with crystal and oracle
What is wrong?
HTML Code:
{
Utilitarios oUtil=new Utilitarios();
cn.ConnectionString = oUtil.GetConnectionstring();
string ocmd="Select * from solicitudes_vw where num_solicitud='" + txtnumero_caso.Text + "'";
OleDbCommand cmd = new OleDbCommand (ocmd, cn);
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
rpsolicitud Rep = new rpsolicitud();
CrystalDecisions.Shared.TableLogOnInfo crLogonInfo;
crLogonInfo = Rep.Database.Tables[0].LogOnInfo;
crLogonInfo.ConnectionInfo.ServerName = "MyServerName";
crLogonInfo.ConnectionInfo.UserID = "USERID";
crLogonInfo.ConnectionInfo.Password = "PASS";
crLogonInfo.ConnectionInfo.DatabaseName = "DB";
Rep.Database.Tables[0].ApplyLogOnInfo(crLogonInfo);
Rep.SetDataSource(ds);
CrystalReportViewer1.ReportSource = Rep;
MemoryStream oStream; // using System.IO
oStream = (MemoryStream)
Rep.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End(); */
}