public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     CR_status_compra rpt = new CR_status_compra();
     rpt.Site = this.Site;
     return rpt;
 }
        private void status_compra()
        {
            var status_compra = new CR_status_compra();

            status_compra.DataDefinition.FormulaFields["empresaname"].Text = "'EMPRESA: " + VariablesPublicas.EmpresaName.Trim() + "'";
            status_compra.DataDefinition.FormulaFields["empresaruc"].Text = "'RUC: " + VariablesPublicas.EmpresaRuc.Trim() + "'";
            status_compra.DataDefinition.FormulaFields["anio"].Text = "'" + perianio.Trim() + "'";
            status_compra.DataDefinition.FormulaFields["inicio"].Text = "'" + VariablesPublicas.N_PrimerMes1.Trim() + "'";
            status_compra.DataDefinition.FormulaFields["fin"].Text = "'" + VariablesPublicas.N_FinMes1.Trim() + "'";
            status_compra.SetDataSource(Orden_Pendiente());
            crystalReportViewer1.ReportSource = status_compra;
            crystalReportViewer1.Show();
        }