Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void frmReportTeste_Load(object sender, EventArgs e)
- {
- try
- {
- // TODO: This line of code loads data into the 'dsOrcPrevisto.dtOrcPrevisto' table. You can move, or remove it, as needed.
- this.dtOrcPrevistoTableAdapter.Fill(this.dsOrcPrevisto.dtOrcPrevisto);
- ReportParameter p1 = new ReportParameter("op.venda", venda.ToString());
- ReportParameter p2 = new ReportParameter("op.vendedor", vendedor.ToString());
- this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] { p1, p2 });
- this.reportViewer1.RefreshReport();
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement