Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportST_Receipt rpt = new CrystalReportST_Receipt();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frm_Receipt_Load(object sender, EventArgs e)
        {
            TransactionID = frm_CustomerTransaction.TransactionID.ToString();
            PrintedBy     = Form1.name.ToString();
            var da = new Miletec_Sales_and_Inventory.DS_ReceiptTableAdapters.DataTable4TableAdapter();
            var dt = new Miletec_Sales_and_Inventory.DS_Receipt.DataTable4DataTable();

            da.FillTestReceipt(dt, PrintedBy, TransactionID);

            var ds = new DataSet();

            ds.Tables.Add(dt);

            var receipt = new CrystalReportST_Receipt();

            receipt.SetDataSource(ds);

            crReceipt.ReportSource = receipt;
            crReceipt.RefreshReport();
        }