Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrpPartyProductWiseSale rpt = new CrpPartyProductWiseSale();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
 public void PartyProductWiseSale(string criteria, DataTable dt)
 {
     try
     {
         objDAL.connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings["MyString"].ConnectionString;
         DataTable dt1 = objDAL.getCompanyInfo();
         CrpPartyProductWiseSale Rpt = new CrpPartyProductWiseSale();
         Rpt.Database.Tables[0].SetDataSource(dt);
         Rpt.Database.Tables[1].SetDataSource(dt1);
         Rpt.SummaryInfo.ReportTitle = "PARTY/PRODUCT WISE SALE";
         Rpt.SetParameterValue("criteria", criteria);
         this.CRViewer.ReportSource = Rpt;
     }
     catch (Exception exc)
     {
         MessageBox.Show(exc.Message, "Error");
     }
 }