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

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string var = Convert.ToString(Session["USUARIO"]);

            if (String.IsNullOrEmpty(var))
            {
                Response.Redirect("Login.aspx");
            }

            if (!IsPostBack)
            {
            }

            RptPersonal rp     = new RptPersonal();
            string      server = @"JAVIRAMPC\BDDJAVIERAM";
            string      BDD    = "HospitalAdonai";

            rp.DataSourceConnections[0].SetConnection(server, BDD, string.Empty, string.Empty);
            CrystalReportViewer1.ReportSource = rp;
            CrystalReportViewer1.RefreshReport();
        }