示例#1
0
        private void frmRelatorio_Load(object sender, EventArgs e)
        {
            rpRelatorio.Width  = this.Width - 10;
            rpRelatorio.Height = this.Height - 10;

            try
            {
                WebServiceMarfrigSoapClient webclient = new WebServiceMarfrigSoapClient();
                compraGadoConsultaBindingSource.DataSource = webclient.GetRelatorioCompraGado(compraGado);

                CompraGado oCompragado = compraGadoConsultaBindingSource.Current as CompraGado;
            }
            catch (Exception ex)
            {
                MetroFramework.MetroMessageBox.Show(this, ex.Message, "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            this.rpRelatorio.AutoSize = true;

            this.rpRelatorio.RefreshReport();
            this.rpRelatorio.RefreshReport();
        }