Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i want to pass some paramaters to a localreport in my project but i get the "The source of the report definition has not been specified" error message.




VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       Dim ds As New ReportDataSource("ds_rapordata")
       Dim rps(0) As ReportParameter

       frm_rapor_goster.ReportViewer1.Reset()
       ds.Value = dt_grid.DataSource
       frm_rapor_goster.ReportViewer1.LocalReport.DataSources.Clear()
       frm_rapor_goster.ReportViewer1.LocalReport.DataSources.Add(ds)
       rps.SetValue(New ReportParameter("rp_baslik", "Başlık"), 0)
       frm_rapor_goster.ReportViewer1.LocalReport.SetParameters(rps)


       frm_rapor_goster.ReportViewer1.LocalReport.ReportEmbeddedResource = "WF_PROJECT.rpr_ucuslar_milli.rdlc"
       frm_rapor_goster.MdiParent = Me.MdiParent
       frm_rapor_goster.Show()
   End Sub


Thanx for your help from now.
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900