Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
<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 18-Apr-13 1:24am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please change / look ...
 
in Report viewer mention the database name
 
that is database Doesn't found thats why it's shows like this
error....
  Permalink  
Comments
kalaiselvansurya at 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)

  Print Answers RSS
0 OriginalGriff 6,569
1 Sergey Alexandrovich Kryukov 6,168
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 18 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100