inventoryInfoReport.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local; inventoryInfoReport.LocalReport.ReportPath = CitronConfiguration.ReportPath + "InventoryInfoReport.rdlc"; inventoryInfoReport.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local; inventoryInfoReport.LocalReport.ReportPath = CitronConfiguration.ReportPath + "InventoryInfoReport.rdlc"; InventoryInfoDataSet inventoryDataSetObj = new InventoryInfoDataSet(); IList inventoryCatalogList = new InventoryCatalogSystem().GetInventoryCatalogList(); foreach (InventoryCatalog inventoryCatalog in inventoryCatalogList) { DataRow row = inventoryDataSetObj.Tables[0].NewRow(); row["InventoryId"] = inventoryCatalog.InventoryId; row["InventoryName"] = inventoryCatalog.InventoryName; row["Stock"] = Library.DecimalToCurrency(inventoryCatalog.Stock); row["IdealStock"] = Library.DecimalToCurrency(inventoryCatalog.IdealStock); row["Balance"] = Library.DecimalToCurrency(inventoryCatalog.Balance); inventoryDataSetObj.Tables[0].Rows.Add(row); } ReportDataSource objDataSource = new ReportDataSource("InventoryInfoDataSet_DataTable1", inventoryDataSetObj.Tables[0]); inventoryInfoReport.LocalReport.DataSources.Add(objDataSource); //<--the error was here
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)