2017-08-28 75 views
1

誰能幫我出這個問題上的水晶報表:「您請求的報告需要進一步的信息」錯誤

CR version 13.0.20.2399 
Visual Studio Ultimate 

當我嘗試從第一頁移動到第二頁,正在此提示,

您請求的報告需要進一步的信息

下面是我的代碼:

myRrpt.Load(Server.MapPath("~\Reporting\CrystalReport15.rpt")) 

    connect_EWS.ConnectionString = Constr_EWS 
    Dim con As New SqlCommand 
    Dim query As String = "SELECT * from Report_BT where [email protected]" 
    con.CommandText = query 
    con.Connection = connect_EWS 
    con.Parameters.AddWithValue("@num", txtNumber.Text.Trim) 
    connect_EWS.Open() 
    ' Dim dsCustomers As New ISAE_BankTransfer 
    Dim da As New SqlDataAdapter(con) 

    Dim dsCustomers As DataSet4 = New DataSet4 

    da.Fill(dsCustomers, "Report_BT") 
    connect_EWS.Close() 

    myRrpt.SetDataSource(dsCustomers.Tables(0)) 
    CrystalReportViewer1.DisplayPage = True 

    CrystalReportViewer1.ReportSource = myRrpt 

該網站是在Windows Server內部發布2012數據中心

回答

0

添加數據庫連接的代碼中的證書。所以它也會得到第二頁的信息。邏輯是在晶體報告中進行分頁時,它也打到分貝獲得第二組數據。

var connectionInfo = new ConnectionInfo(); 
    connectionInfo.ServerName = "192.168.x.xxx"; 
    connectionInfo.DatabaseName = "xxxx"; 
    connectionInfo.Password = "xxxx"; 
    connectionInfo.UserID = "xxxx"; 
    connectionInfo.Type = ConnectionInfoType.SQL; 
    connectionInfo.IntegratedSecurity = false; 

for (int i = 0; i < Viewer.LogOnInfo.Count; i++) 
{ 
    Viewer.LogOnInfo[i].ConnectionInfo = connectionInfo; 
} 

Crystal Reports - "The report you requested requires further information"

相關問題