示例#1
0
        private void reportViewer1_Load(object sender, EventArgs e)
        {
            VendaController VendaController = new VendaController();
            DataTable       dataTable       = VendaController.pesquisarProdutosMaisVendidos();

            ReportDataSource rds = new ReportDataSource("DataSetPMaisVendidos", dataTable);

            reportViewer1.LocalReport.DataSources.Add(rds);
            this.reportViewer1.RefreshReport();
        }