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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        //---inserting data into MS Access DB---End----

        private void showreport()
        {
            IALReport objReport = new IALReport();

            objReport.SetDatabaseLogon("", "", "Microsoft.Jet.OLEDB.4.0", Application.StartupPath + "C:\\NavisDB\\KPTDiscre.mdb", true);

            //write formula to pass parameters to report
            string rptname = Application.StartupPath + "\\crptPrintReceipt1.rpt";

            rptIALReport.SelectionFormula = "{ct_deschdr.discid} =" + Convert.ToInt16(discid);
            rptIALReport.ReportSource     = objReport;
            rptIALReport.Visible          = true;
        }