I traced this back to the following line of code in FormLetterMerges.cs:
Code: Select all
WrdApp.ActivePrinter=pd.PrinterSettings.PrinterName;
Code: Select all
object oWBasic = WrdApp.WordBasic;
object[] oWBValues = new object[] { pd.PrinterSettings.PrinterName, 1 };
String[] sWBNames = new String[] { "Printer", "DoNotSetAsSysDefault" };
oWBasic.GetType().InvokeMember("FilePrintSetup", BindingFlags.InvokeMethod, null, oWBasic, oWBValues, null, null, sWBNames);
I've tested it on my end and it seems to do the trick. Hopefully we can get this included (maybe backported to earlier versions as well?) in the 5.6 tree.
Any input would be greatly appreciated.
Thanks,
Richard Waite
Dental IT