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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frmBook_Load(object sender, EventArgs e)
        {
            crBook cr = new crBook();

            SqlConnection  cn;
            SqlDataAdapter da;
            DataSet        ds;
            string         conS = "data source=(local);initial catalog=Library;Integrated security=SSPI";

            cn = new SqlConnection(conS);

            string selectsql = "select *  from Books";

            da = new SqlDataAdapter(selectsql, cn);

            ds = new DataSet();
            da.Fill(ds, "Books");

            cr.SetDataSource(ds.Tables["Books"]);
            crystalReportViewer1.ReportSource = cr;
        }