private void PrintPutaway() { // Show Column // Confirmation.Visible = true; Confirmation1.Visible = true; //gridPutAwayPalletized.ShowPrintPreview(); if (gridPutAwayNonPalletized.DataSource != null && (gridPutAwayNonPalletized.DataSource as DataTable).Rows.Count > 0) { // gridPutAwayNonPalletized.ShowPrintPreview(); } // TODO: Fix this to show all the appropriate items //compositeLink1.PrintingSystem = new DevExpress.XtraPrinting.PrintingSystem(); //compositeLink1.ShowPreview(); HCMIS.Desktop.Reports.GoodsReceivingNote note = new HCMIS.Desktop.Reports.GoodsReceivingNote(); BLL.Receipt rct = new BLL.Receipt(); var activity = new Activity(); activity.LoadByPrimaryKey(storeID); note.xrLabelAccounts.Text = activity.FullActivityName; note.DataSource = rct.GetReceiptInformationForGRN(_receiptID); if (BLL.Settings.IsCenter) { note.xrPOrderNo.Visible = false; note.xrPOrderNoValue.Visible = false; note.xrAirWayNo.Visible = false; note.xrAirWayNoValue.Visible = false; note.xrTransitTransferNo.Visible = false; note.xrTransitTransferNoValue.Visible = false; note.xrInsurancePolicyNo.Visible = false; note.xrInsurancePolicyNoValue.Visible = false; } //note.ShowPreviewDialog(); // Hide Column Confirmation1.Visible = false; //Confirmation.Visible = false; }