예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRVentaMesArticulo rpt = new CRVentaMesArticulo();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
 private void btnReporte_Click(object sender, EventArgs e)
 {
     if (!cmbAños.SelectedItem.Equals(""))
     {
         m1 = cmbMes1.SelectedIndex + 1;
         m2 = cmbMes2.SelectedIndex + 1;
         CRVentaMesArticulo     rpt = new CRVentaMesArticulo();
         frmRptVentaMesArticulo frm = new frmRptVentaMesArticulo();
         rpt.SetDataSource(
             ds.Reporte(m1, m2, Convert.ToInt32(cmbFormaPago.SelectedValue), cmbCriterio.SelectedIndex,
                        txtUnArt.Text, rbTodosArt.Checked, Convert.ToInt32(cmbMoneda.SelectedValue),
                        frmLogin.iCodAlmacen, Convert.ToInt32(cmbAños.SelectedItem)).Tables[0]);
         frm.crvRptVentaMesArticulo.ReportSource = rpt;
         frm.Show();
     }
     else
     {
         MessageBox.Show("¡Ingrese Año!", "Reporte de Mes por Articulo", MessageBoxButtons.OK,
                         MessageBoxIcon.Warning);
     }
 }