Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportBookingReceipt rpt = new CrystalReportBookingReceipt();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        public BookingReceipt()
        {
            InitializeComponent();
            SA46Team07BEntities         context = new SA46Team07BEntities();
            CrystalReportBookingReceipt cr      = new CrystalReportBookingReceipt();

            cr.SetDataSource(context.BookingViews);
            crystalReportViewer1.ReportSource  = cr;
            crystalReportViewer1.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
        }