public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReporteTicket rpt = new ReporteTicket();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frmVistaPrevRepTickets_Load(object sender, EventArgs e)
        {
            if (catr == string.Empty)
            {
                catr = Convert.ToString(null);
            }
            if (tipr == string.Empty)
            {
                tipr = Convert.ToString(null);
            }
            ReporteTicket rep = new ReporteTicket();

            rep.SetParameterValue("@nro_soc", nrosocior);
            rep.SetParameterValue("@mes", mesr);
            rep.SetParameterValue("@anio", anior);
            rep.SetParameterValue("@categoria", catr);
            rep.SetParameterValue("@tipo", tipr);
            crystalReportViewer1.ReportSource = rep;
        }