Hello friends,
i am using asp.Net and using crystal report when i connct it with webform then it display the error logon fail i try to many code which is provide on net but it not works.
here i want to tell u that i am using Sql server but i didn't give any userid and password in sql server.
and i am writing this code
Dim rptdaily As New cryst()
Dim myTable As New ConnectionInfo()
Dim mylogin As CrystalDecisions.Shared.TableLogOnInfos
Dim loginfo As New TableLogOnInfo()
Dim tble As Table
Dim tbles As Tables
Dim repdoc As New ReportDocument()
repdoc.Load(Server.MapPath("cryst.rpt"))
With myTable
.ServerName = "local"
.DatabaseName = "TB"
End With
tbles = repdoc.Database.Tables
For Each tble In tbles
loginfo = tble.LogOnInfo
loginfo.ConnectionInfo = myTable
tble.ApplyLogOnInfo(loginfo)
Next
CrystalReportViewer1.ReportSource = repdoc

CrystalDecisions.CrystalReports.Engine.LogOnExcept ion: Logon failed.
[LogOnException: Logon failed.]
.K(String
, EngineExceptionErrorID )
.F(Int16 , Int32 )
.E(Int16 )
CrystalDecisions.CrystalReports.Engine.FormatEngin e.GetPage(PageRequestContext reqContext)
CrystalDecisions.ReportSource.LocalReportSourceBas e.GetPage(PageRequestContext pageReqContext)
CrystalDecisions.Web.ReportAgent.v(Boolean `)
CrystalDecisions.Web.CrystalReportViewer.OnPreRend er(EventArgs e)
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1488
Raj