dcsimg
Results 1 to 1 of 1

Thread: Error - An error occurred during local report processing

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2011
    Posts
    669

    Error - An error occurred during local report processing

    Hi

    I have below code and in rds it shows data. IT gives error the definition of the report is invalid

    Code:
     Dim data As New DataSet1.Sp_CostingDataTable
    
            con = New SqlConnection("Server=test;Database=Costing;Trusted_Connection=True;")
            con.Open()
    
            Dim adp As SqlDataAdapter = New SqlDataAdapter()
            adp.SelectCommand = New SqlCommand("Costing", con)
            adp.SelectCommand.CommandType = CommandType.StoredProcedure
            adp.Fill(data)
            Dim rds As New Microsoft.Reporting.WinForms.ReportDataSource("DataSet1", CType(data, DataTable))
            rptViewer.LocalReport.DataSources.Clear()
            rptViewer.ProcessingMode = ProcessingMode.Local
            rptViewer.LocalReport.DataSources.Add(rds)
    
            rptViewer.LocalReport.ReportPath = "D:\Costing.rdlc"
            rptViewer.LocalReport.Refresh()
            rptViewer.RefreshReport()
    Thanks
    Last edited by Jagjit; Sep 4th, 2019 at 09:27 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width