Crystal Reports - “The report you requested requires further information”

前端 未结 9 1460
梦如初夏
梦如初夏 2021-01-07 08:34

I have some Crystal Reports that were created using Crystal (external to Visual Studio) and are now loaded in the VS project. Before the report is previewed I set up the rep

9条回答
  •  鱼传尺愫
    2021-01-07 08:37

    put your coding to load event while bind report don't put ispostback=false condition

    example

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim dt As New dsPrintRevisionStatus
        Try
            lblHeader.Text = Request.QueryString("name")
            If lblHeader.Text = "Report- Print Revision Status" Then
                Dim rpt As New rpt_PrintRevisionStatus
                rpt.SetDataSource(sqlHandler.ExecuteDataTable("SELECT * FROM [Print Revision Status]"))
                crtViewer.ReportSource = rpt
                crtViewer.DataBind()
    
            End If
        Catch ex As Exception
            lblError.Text = ex.Message
        End Try
    End Sub
    

提交回复
热议问题