Data Connectivity
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Data Connectivity
Message Icon Topic: CR and Visual Web Developer 2008 express Post Reply Post New Topic
Author Message
Morenesi
Newbie
Newbie
Avatar

Joined: 14 Jul 2008
Location: Mexico
Online Status: Offline
Posts: 1
Quote Morenesi Replybullet Topic: CR and Visual Web Developer 2008 express
    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??
 


Edited by Morenesi - 14 Jul 2008 at 11:16am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.