private void WantListPrintSearch_Load(object sender, EventArgs e)
        {
            ReportParameter p = new ReportParameter("SearchResults", Comics.WantList.SearchData);

            // TODO: This line of code loads data into the 'ComicBookDataSet.ComicBookDetails1' table. You can move, or remove it, as needed.
            this.ComicBookDetails1TableAdapter.Fill(this.ComicBookDataSet.ComicBookDetails1);
            ComicBookDetails1TableAdapter.FillWantSearch(this.ComicBookDataSet.ComicBookDetails1, Comics.WantList.SearchData);
            this.WantListPrintSearchRpt.LocalReport.SetParameters(new ReportParameter[] { p });
            this.WantListPrintSearchRpt.RefreshReport();
        }
Example #2
0
 private void WantListPrint_Load(object sender, EventArgs e)
 {
     ComicBookDetails1TableAdapter.Fill(this.ComicBookDataSet.ComicBookDetails1);
     this.reportViewer1.RefreshReport();
 }