Print Page | Close Window

CR and Visual Web Developer 2008 express

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=3697
Printed Date: 26 May 2024 at 3:52pm


Topic: CR and Visual Web Developer 2008 express
Posted By: Morenesi
Subject: CR and Visual Web Developer 2008 express
Date Posted: 14 Jul 2008 at 11:11am
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??
 



Print Page | Close Window