public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            StationeryPurchaseOrderReport rpt = new StationeryPurchaseOrderReport();

            rpt.Site = this.Site;
            return(rpt);
        }
 private void loadPrintData()
 {
     if (Session["ReportType"].ToString().Equals("Stockcard"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.ViewStockCardReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.ViewStockCardReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("PurchaseOrder"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.StationeryPurchaseOrderReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.StationeryPurchaseOrderReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("DeliverOrder"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.DeliveryOrderFormReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.DeliveryOrderFormReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("AdjustmentVoucher"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.InventoryAdjustmentVoucherReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.InventoryAdjustmentVoucherReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     StationeryPurchaseOrderReport rpt = new StationeryPurchaseOrderReport();
     rpt.Site = this.Site;
     return rpt;
 }
 private void loadPrintData()
 {
     if (Session["ReportType"].ToString().Equals("Stockcard"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.ViewStockCardReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.ViewStockCardReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("PurchaseOrder"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.StationeryPurchaseOrderReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.StationeryPurchaseOrderReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("DeliverOrder"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.DeliveryOrderFormReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.DeliveryOrderFormReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
     else if (Session["ReportType"].ToString().Equals("AdjustmentVoucher"))
     {
         StationeryStoreInventorySystem.Reports.SSISReports.InventoryAdjustmentVoucherReport RR =
             new StationeryStoreInventorySystem.Reports.SSISReports.InventoryAdjustmentVoucherReport();
         RR.SetDataSource((DataTable)Session["PrintData"]);
         PrintReportViewer.ReportSource = RR;
     }
 }