hey, I need help :) Now I realized that this problem. In my software there are many reports. I used report viewer (defualt comes with visual studio) control for reporting. All the other forms loaded to MDI paren form.
I run one of report. Then I run another report then the second report doesn't view. It shows only loading.
I'll put my code which I used for generate reports.
Private Sub report_of_all()
Dim ds As New DataSet
Dim dt As New DataTable
Dim RpDs1 As New Microsoft.Reporting.WinForms.ReportDataSource
Dim SQL As String = "select * from moneycs.collector"
Dim da As New MySqlDataAdapter(SQL, con)
da.Fill(ds, "All_Collectors")
dt = ds.Tables(0)
Me.ReportViewer1.Reset()
Me.ReportViewer1.LocalReport.DataSources.Clear()
RpDs1.Name = "Centers"
RpDs1.Value = dt
Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local
Me.ReportViewer1.LocalReport.ReportPath = System.Environment.CurrentDirectory + "\All_Collectors.rdlc"
Me.ReportViewer1.LocalReport.DataSources.Clear()
Me.ReportViewer1.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("All_Collectors", ds.Tables(0)))
Me.ReportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth
Me.ReportViewer1.RefreshReport()
End Sub
guys please help me..... Appreciate your experties help :)