Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<big></big>Failed to open the connection. Failed to open the connection. INV_LIST1 {86E757C6-3505-4E4B-B7E4-48236D40B15C}.rpt

dear FRIEND I SEND WITHOUT FORMULA CRYSTAL REPORT VIEWING BUT. WITH FORMULA ABOVE ERROR COME PLEASE HELP ANY BODY.
ASP.NET 2010
I AM USING .NET 2010 AND SQL SERVER pLEASE HELP ME
Posted

1 solution

Please change / look ...

in Report viewer mention the database name

that is database Doesn't found thats why it's shows like this
error....
 
Share this answer
 
Comments
kalaiselvansurya 18-Apr-13 11:16am    
My report viewer coding
but I take some report working fine.

rptname = Session("rptname")
str = Session("Str")
Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument

With con
.UserID = "sa"
.Password = "sa"
.DatabaseName = "TASHEEL"
.ServerName = "server"
End With

If rptname = "inv_rep.rpt" Then

rpt.Load(Server.MapPath("..\Report\INV_LIST1.rpt"))
End If
db1 = rpt.Database
dbs = db1.Tables
For Each db In dbs
tab = db.LogOnInfo
tab.ConnectionInfo = con
db.ApplyLogOnInfo(tab)
Next
CrystalReportViewer1.SelectionFormula = str
CrystalReportViewer1.ReportSource = rpt
CrystalReportViewer1.ShowFirstPage()

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900