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

            rpt.Site = this.Site;
            return(rpt);
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     crptFundFlow rpt = new crptFundFlow();
     rpt.Site = this.Site;
     return rpt;
 }
Ejemplo n.º 3
0
        /// <summary>
        ///  Function to print  FundFlow in curresponding Crystal report
        /// </summary>
        /// <param name="dsFundFlow"></param>
        internal void FundFlow(DataSet dsFundFlow)
        {
            try
            {

                crptFundFlow crptFundFlow = new crptFundFlow();

                foreach (DataTable dtbl in dsFundFlow.Tables)
                {
                    if (dtbl.TableName == "Table1")
                    {
                        crptFundFlow.Database.Tables["dtblFund"].SetDataSource(dtbl);
                    }
                    if (dtbl.TableName == "Table2")
                    {

                        crptFundFlow.Database.Tables["dtblCompany"].SetDataSource(dtbl);
                    }

                    if (dtbl.TableName == "Table3")
                    {
                        crptFundFlow.Database.Tables["dtblWC"].SetDataSource(dtbl);
                    }


                }
                this.crptViewer.ReportSource = crptFundFlow;

                SettingsSP spSettings = new SettingsSP();
                if (spSettings.SettingsStatusCheck("DirectPrint") == "No")
                {
                    base.Show();
                    this.BringToFront();
                }
                else
                {
                    crptFundFlow.PrintToPrinter(1, false, 0, 0);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("BS14:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }