B2025-053 Printing from Ribbon while Edits in progress #642
| @@ -4190,15 +4190,19 @@ namespace Volian.Controls.Library | ||||
| 			if (oring == eEventSource.Keyboard) | ||||
| 				_OringFlg = 1; | ||||
|  | ||||
| 			int selectedSlave = MyItemInfo.MyProcedure.ProcedureConfig.SelectedSlave; | ||||
| 			if (MyItemInfo == null) return;   // if creating a pdf before rtb exists, return; | ||||
| 			if (MyEditItem != null) MyEditItem.SaveCurrentAndContents(); | ||||
| 			MyItemInfo.MyProcedure.ProcedureConfig.SelectedSlave = selectedSlave; | ||||
| 			OnPrintRequest(new StepTabRibbonEventArgs(MyItemInfo.MyProcedure, _OringFlg), 0); | ||||
| 		} | ||||
|  | ||||
| 		private void btnPdfQuickCreate_Click(object sender, EventArgs e) | ||||
| 		{ | ||||
| 			int selectedSlave = MyItemInfo.MyProcedure.ProcedureConfig.SelectedSlave; | ||||
| 			if (MyItemInfo == null) return;   // if creating a pdf before rtb exists, return; | ||||
| 			if (MyEditItem != null) MyEditItem.SaveCurrentAndContents(); | ||||
| 			MyItemInfo.MyProcedure.ProcedureConfig.SelectedSlave = selectedSlave; | ||||
| 			OnPrintRequest(new StepTabRibbonEventArgs(MyItemInfo.MyProcedure, _OringFlg), 1); | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user