dear all,
i'm getting error while trying open myreport.aspx.
The problem is ârefresh reportâ doesnât work when Crystal Report is build under ASP.NET
With connection Window authentication. The error messages shown as below:
LogonException.LogonFailed
here is my code:
Dim Rpt As New ReportDocument
Dim Tabels As New TableLogOnInfos
Dim Tabel As New TableLogOnInfo
Dim Konek As New ConnectionInfo
Dim Folder As String
Folder = Server.MapPath("\reports\myreport.rpt")
Rpt.Load(Folder)
With Konek
.ServerName = "myserver"
.DatabaseName = "mydb"
End With
Tabel.ConnectionInfo = Konek
Tabels.Add(Tabel)
cr.LogOnInfo = Tabels
cr.ReportSource = Rpt
cr.RefreshReport() <<-- error line
FYI, i use windows authentication to logon to my ms-sqlserver.
what should i do??? coz i also try this code in
VB.NET and it's work!
thanks for help.