1
我創建水晶報表,其要求來自用戶的輸入...我的用戶參數字段要求開始日期和結束日期得到報告......您請求的報告需要進一步的信息
一切正常,直到用戶提交他們的起始和結束日期...
的水晶報表不斷地問數據庫的密碼,除非我在代碼中寫......我在這裏的代碼
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
If DropDownList1.SelectedValue = "Jam Masuk" Then
Dim reportdocument As New ReportDocument()
reportdocument.Load("D:\MIS Project\Master Project MIS\BSTM\Security\ReportTamuMasuk.rpt")
reportdocument.SetDatabaseLogon("sa", "[email protected]")
reportdocument.SetParameterValue("Akhir Jam Masuk", Label2.Text)
CrystalReportViewer1.ReportSource = reportdocument
CrystalReportViewer1.Visible = True
ElseIf DropDownList1.SelectedValue = "Jam Keluar" Then
Dim reportdocument As New ReportDocument()
reportdocument.Load(Server.MapPath("ReportTamuKeluar.rpt"))
reportdocument.SetDatabaseLogon("sa", "[email protected]")
reportdocument.SetParameterValue("Akhir Jam Keluar", Label2.Text)
CrystalReportViewer1.ReportSource = reportdocument
CrystalReportViewer1.Visible = True
Else
CrystalReportViewer1.Visible = False
End If
End Sub
這可能是數據連接器問題。你連接的是什麼類型的數據庫? –
同類問題:http://stackoverflow.com/questions/1186048/crystal-reports-the-report-you-requested-requires-further-information?rq=1 – Andrew