Hi,
I am using VS2010 and Crystal Report 2011 Version=13.0.2000.0 in the web application.
When the first time report is loaded the next button on toolbar works fine but after printing a report, next button shows message "Please wait while the document being processed".
I have tested it both on my local machine and on the web server, and i am getting the same results.
I am saving a report in session.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Session("Rep") = Nothing
Else
'--Has report previously been loaded if Yes then use a session report.
If hdHasViewed.Value = "YES" Then
If Not Session("Rep") Is Nothing Then
ShowResults()
End If
End If
End If
End Sub
Private
Sub ShowResults(Optional ByRef ds As DataSet = Nothing)
If Session("Rep") Is Nothing Then
Dim dsTem As DataSet
Dim r() As DataRow
myRpt = New ReportDocument
If Not ds Is Nothing Then
dsTem = ds
r = dsTem.Tables(0).Select("EMPCODE IS NOT NULL")
If r.Length <= 0 Then
CreateErrorString("No data returned")
placeResults.Visible = False
Exit Sub
Else
placeResults.Visible = True
End If
Else
CreateErrorString("Dataset is set to Nothing")
Exit Sub
End If
myRpt.Load(Server.MapPath("Reports/crEuProject.rpt"))
myRpt.SetDataSource(ds.Tables(0))
Session("Rep") = myRpt
End If
With crViewer
.ReportSource = Session("Rep") 'myRpt
.DataBind()
End With
End Sub