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:
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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.