C2013-009: Use PDF Location text box on General Tab for setting location and remove PDF Location text box on Settings Tab
B2013-173: Print Shortcut - when multiple tabs are open, Ctrl-P now prints correct procedure
This commit is contained in:
@@ -762,7 +762,15 @@ namespace VEPROMS
|
||||
}
|
||||
void MyStepTabRibbon_PrintRequest(object sender, StepTabRibbonEventArgs args)
|
||||
{
|
||||
// Fix for B2013-173:
|
||||
// if the user did the print by using the shortcut keys 'Ctrl-P' the arguments sent in
|
||||
// is the first opened procedure rather than the active procedure. So check for this
|
||||
// and if they are not the same, use the CurrentItem from the main frmVEPROMS.
|
||||
ProcedureInfo piThis = null;
|
||||
if (_CurrentItem != null) piThis = _CurrentItem.MyProcedure;
|
||||
ProcedureInfo pi = args.Proc as ProcedureInfo;
|
||||
if (piThis != null && pi.ItemID != piThis.ItemID) pi = piThis;
|
||||
|
||||
//added by jcb 20130718 to support create pdf button when multiunit and user selects a unit
|
||||
pi.MyDocVersion.DocVersionConfig.SelectedSlave = pi.ProcedureConfig.SelectedSlave;
|
||||
//end added by jcb 20130718
|
||||
|
Reference in New Issue
Block a user