hi!!
i created a report on vs2005 but now i have to use it in vwd2008 express, but it doesnt work i have this message error:
Logon failed.Details: crdb_adoplus : Object reference not set to an instance of an object. Error in File C:\Users\ADAT2\AppData\Local\Temp\Reporte{2E13D26F-450F-4166-97EA-56AA18BB44A9}.rpt:Unable to connect: incorrect log on parameters.
here is my codebehind:
ReportDocument
Reporte6090 = new ReportDocument();
Reporte6090.Load(Server.MapPath(
@"~/Reports/Reporte.rpt"), OpenReportMethod.OpenReportByTempCopy);
CrystalReportViewer1.ReportSource = Reporte6090;
CrystalReportViewer1.DataBind();
i try give permissions to every table in report.
Reporte6090.SetDatabaseLogon(
"user", "password");
ConnectionInfo ConInfo = new ConnectionInfo();
ConInfo.DatabaseName =
"DBName";
ConInfo.ServerName =
"Server";
ConInfo.UserID =
"user";
ConInfo.Password =
"password";
CrystalDecisions.CrystalReports.Engine.
Tables CrTables;
CrTables = Reporte6090.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in CrTables)
{
TableLogOnInfo logOnInfo = table.LogOnInfo;
ogOnInfo.ConnectionInfo = ConInfo;
table.ApplyLogOnInfo(logOnInfo);
}
but it doesn work so.. what im doing wrong or what else i have to do??
Edited by Morenesi - 14 Jul 2008 at 11:16am