FastReport Error ???DragDrop registration did not succeed???
Hi dear friends,
I design a report with FastReport that has sqlserver stored procedure with several parameter. When i run a report in designer with preview button all things is right and report appears correctly. But when i call report from my code (vb.net) the following error has accrued in show Method of WebReport1.
"DragDrop registration did not succeed."
and this is my code:
Please help me because my deadline is 2 days later.
thanks.
I design a report with FastReport that has sqlserver stored procedure with several parameter. When i run a report in designer with preview button all things is right and report appears correctly. But when i call report from my code (vb.net) the following error has accrued in show Method of WebReport1.
"DragDrop registration did not succeed."
and this is my code:
Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
        Dim ReportName As String = Session("ReportName")
        Dim sp_param_var_array() As String = Session("ReportParameter")
        Dim sp_param_value_array() As Object = Session("ReportValues")
        Dim Array_len As Integer
        Dim i As Integer
        Array_len = sp_param_var_array.Length()
        Dim MyReport As New FastReport.Report
        Dim ds As New DataSet
        MyReport.Load(Server.MapPath("~") & "/Report/" & ReportName)
        MyReport.RegisterData(ds)
        MyReport.Dictionary.Connections(0).ConnectionString = clsConfig.ReadConfigConnectionStrings("~")
        For i = 0 To (Array_len) - 1
            MyReport.SetParameterValue(sp_param_var_array(i), sp_param_value_array(i))
        Next
        WebReport1.Report = MyReport
        WebReport1.Report.Show(True)
    End Sub
Please help me because my deadline is 2 days later.
thanks.