private void reportViewer_Load(object sender, EventArgs e) { try { var dataSource = logic.GetKomlectComponent(); ReportDataSource source = new ReportDataSource("DataSetKomlectComponent", dataSource); reportViewer.LocalReport.DataSources.Add(source); reportViewer.RefreshReport(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }