よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
private void FormReportProductIngredient_Load(object sender, EventArgs e) { try { var dataSource = logic.GetProductIngredient(); ReportDataSource source = new ReportDataSource("DataSetPI", dataSource); reportViewer.LocalReport.DataSources.Add(source); reportViewer.RefreshReport(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }