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

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void generateReport()
        {
            StockReportData reportDetails = new StockReportData();
            DataTable       dataTable     = reportDetails.StockData;

            StockReport Report = new StockReport();

            addData();
            for (int i = 0; i < sList.Count; i++)
            {
                DataRow drow = dataTable.NewRow();
                drow["SlNo"]      = sList[i];
                drow["ItemNo"]    = iList[i];
                drow["ItemName"]  = nList[i];
                drow["Rate"]      = rList[i];
                drow["Quantity"]  = qList[i];
                drow["GstRate"]   = gstList[i];
                drow["SalePrice"] = spList[i];
                drow["Gst%"]      = gstpList[i];
                dataTable.Rows.Add(drow);
            }
            Report.Database.Tables["StockData"].SetDataSource((DataTable)dataTable);
            stockReportViewer.ViewerCore.ReportSource = Report;
        }