![]() RptDoc.SetParameterValue("END_DATE", strEndDate & " 23:59:59") RptDoc.SetParameterValue("BEGIN_DATE", strBeginDate & " 00:00:00") RptDoc.SetParameterValue("REPORT_DATE", strSingleDate & " 23:59:59") ![]() RepTblLogonInfo.ConnectionInfo = connInfo ("ReportFolder") _įor Each tbl As In ĭim repTblLogonInfo As TableLogOnInfo = tbl.LogOnInfo If Array.IndexOf(arrSingleDate, strReportName) -1 ThenĮlseIf Array.IndexOf(arrMultiDate, strReportName) -1 Then Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Loadĭim strReportName As String = Request.QueryString("rpt")ĭim strSingleDate As String = Request.QueryString("single")ĭim strBeginDate As String = Request.QueryString("begin")ĭim strEndDate As String = Request.QueryString("end") Page.Title = Replace(Request.QueryString("rpt").ToString(), ".rpt", "")ĮlseIf Session(strQueryString) IsNot Nothing ThenĬrystalReportViewer1.ReportSource = Session(strQueryString) Protected Sub Page_Init(sender As Object, e As System.EventArgs) Handles Me.Init Here is the code for the Reports.aspx page: ![]() Lastly, I wrote the code that handles the click events for these buttons. Next, I put my own navigation buttons above the viewer component on the ASP.NET Web Form. First, I disabled the navigation buttons on the viewer itself. 0 that might fix this issue, but I am not in a position to update the version of the SAP Crystal Reports software at present.įortunately, I was able to code around this bug. I read quite a few possible solutions to this, such as moving the code that loads the Crystal Report from Page_Load to Page_Init, but this did not work for me. Pages can still be directly accessed by typing in the page number, but clicking the Next Page button keeps you on page 2. I discovered that the version of the SAP CrystalReportViewer for VS2010 (.0) that I am using appears to have a bug that prevents the user from proceeding past page 2 when using the Next Page button.
0 Comments
Leave a Reply. |