示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRVentaxArticulo rpt = new CRVentaxArticulo();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        private void btnReporte_Click(object sender, EventArgs e)
        {
            CRVentaxArticulo     rpt = new CRVentaxArticulo();
            FrmRptVentaxArticulo frm = new FrmRptVentaxArticulo();

            rpt.SetDataSource(ds.Reporte(Convert.ToInt32(txtCodProducto.Text), dtpFecha1.Value, dtpFecha2.Value, rbTodosArt.Checked, Convert.ToInt32(cmbVendedor.SelectedValue),
                                         frmLogin.iCodAlmacen, Convert.ToInt32(cmbMoneda.SelectedValue)).Tables[0]);
            frm.crvVentaxArticulo.ReportSource = rpt;
            frm.Show();
        }