Error When Saving Document in Microsoft Word to eWay-CRM Using eWay-CRM Ribbon in Word
Description
You have opened Microsoft Word document and you want to save it to eWay-CRM by clicking Save to eWay-CRM button in the ribbon. Instead of classic eWay-CRM dialog, Save As dialog will appear. As soon as you click Cancel or OK, you will see this message:
*** EXCEPTION *** Hash: B90E77DC47F06EDEC267F57E32A7A727 Message: System.InvalidOperationException: Unable to save file into 'C:\Users\Roman\AppData\Roaming\Memos\eWay\Documents\690852ce-1ad5-11e5-a900-0800276ed79a\Document.docx' ---> System.NotImplementedException: Method SaveAs2 not found v eWay.Core.ReflectionHelper.CallMethod(Object instance, Type type, String name, BindingFlags flags, Object[] parameters) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayShared\ReflectionHelper.cs:řádek 302 v eWay.Core.ReflectionHelper.CallPublicMethod(Object instance, String name, Object[] parameters) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayShared\ReflectionHelper.cs:řádek 271 v eWay.Core.DocumentStub.WordWrapper.SaveAs2(String fileName, Int32 fileFormat) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\WordWrapper.cs:řádek 203 v eWay.Core.DocumentStub.WordWrapper.SaveFileAs(String strFileName) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\WordWrapper.cs:řádek 170 --- Konec trasování zásobníku pro vnitřní výjimku --- v eWay.Core.DocumentStub.WordWrapper.SaveFileAs(String strFileName) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\WordWrapper.cs:řádek 176 v eWay.Core.DocumentStub.DocumentStub.<>c__DisplayClass4.<SaveNewDocument>b__3() v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\DocumentStub.cs:řádek 157 v eWay.Core.GUI.Common.Design.DisplayWaitCursor(Action action) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\DevExpressGUI\Design.cs:řádek 132 v eWay.Core.DocumentStub.DocumentStub.SaveNewDocument(ItemWrapper itemWrapper, String userDefinedDocumentName) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\DocumentStub.cs:řádek 135 v eWay.Core.DocumentStub.DocumentStub.SaveDocument(Object selectedItem) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\DocumentStub.cs:řádek 254 v eWay.Core.DocumentStub.DocumentStub.MenuAction(String actionID, Object SelectedItem) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\DocumentStub.cs:řádek 55 TargetSite: System.String SaveFileAs(System.String) Source: eWay.Core.DocumentStub StackTrace: v eWay.Core.DocumentStub.WordWrapper.SaveFileAs(String strFileName) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\WordWrapper.cs:řádek 176 v eWay.Core.DocumentStub.DocumentStub.<>c__DisplayClass4.<SaveNewDocument>b__3() v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\DocumentStub.cs:řádek 157 v eWay.Core.GUI.Common.Design.DisplayWaitCursor(Action action) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\DevExpressGUI\Design.cs:řádek 132 v eWay.Core.DocumentStub.DocumentStub.SaveNewDocument(ItemWrapper itemWrapper, String userDefinedDocumentName) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\DocumentStub.cs:řádek 135 v eWay.Core.DocumentStub.DocumentStub.SaveDocument(Object selectedItem) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\DocumentStub.cs:řádek 254 v eWay.Core.DocumentStub.DocumentStub.MenuAction(String actionID, Object SelectedItem) v c:\CC.NET\Projects\NAnt\Sources\eWayLibrary\eWayDocumentStub\DocumentStub.cs:řádek 55
Or you can see this error:
*** EXCEPTION *** Version: eWay-CRM(r) Premium 5.1.0.55 Hash: 98437D012C9ADC6554A25EED133F61A2 Message: System.InvalidOperationException: Unable to save file into 'C:\Users\ptk0100\AppData\Roaming\Memos\eWay\Documents\f91270fd-0d6e-11e8-82fd-00051ba709b9\Document.docx' ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Command failed v Microsoft.Office.Interop.Word.DocumentClass.SaveAs2(Object& FileName, Object& FileFormat, Object& LockComments, Object& Password, Object& AddToRecentFiles, Object& WritePassword, Object& ReadOnlyRecommended, Object& EmbedTrueTypeFonts, Object& SaveNativePictureFormat, Object& SaveFormsData, Object& SaveAsAOCELetter, Object& Encoding, Object& InsertLineBreaks, Object& AllowSubstitutions, Object& LineEnding, Object& AddBiDiMarks, Object& CompatibilityMode) --- End of inner exception stack trace --- v System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) v System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) v System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) v eWay.Core.ReflectionHelper.CallMethod(Object instance, Type type, String name, BindingFlags flags, Object[] parameters, Type[] parameterTypes) v eWay.Core.DocumentStub.WordWrapper.SaveAs2(String fileName, Int32 fileFormat) v eWay.Core.DocumentStub.WordWrapper.SaveFileAs(String strFileName) --- End of inner exception stack trace --- v eWay.Core.DocumentStub.WordWrapper.SaveFileAs(String strFileName) v eWay.Core.DocumentStub.DocumentStub.<>c__DisplayClass6_0.<SaveNewDocument>b__0() v eWay.Core.GUI.Common.Design.DisplayWaitCursor(Action action) v eWay.Core.DocumentStub.DocumentStub.SaveNewDocument(ItemWrapper itemWrapper, String userDefinedDocumentName) v eWay.Core.DocumentStub.DocumentStub.SaveDocument(Object selectedItem) v eWay.Core.Office.Addins.WordAddin.Connect.ImportDocument() v eWay.Core.Office.Addins.WordAddin.Connect.Save2eWayButton_Click(IRibbonControl control) TargetSite: System.String SaveFileAs(System.String) Source: eWay.Core.DocumentStub StackTrace: v eWay.Core.DocumentStub.WordWrapper.SaveFileAs(String strFileName) v eWay.Core.DocumentStub.DocumentStub.<>c__DisplayClass6_0.<SaveNewDocument>b__0() v eWay.Core.GUI.Common.Design.DisplayWaitCursor(Action action) v eWay.Core.DocumentStub.DocumentStub.SaveNewDocument(ItemWrapper itemWrapper, String userDefinedDocumentName) v eWay.Core.DocumentStub.DocumentStub.SaveDocument(Object selectedItem) v eWay.Core.Office.Addins.WordAddin.Connect.ImportDocument() v eWay.Core.Office.Addins.WordAddin.Connect.Save2eWayButton_Click(IRibbonControl control)
Version
All versions of eWay-CRM
Difficulty
Medium
Resolution
The error is caused by the abDocs Word Addin from ACER. But it is possible that similar error can be caused by different add-in.
Deactivate the add-in in Microsoft Word to solve the problem:
- In Microsoft Word, click File tab.
- Select Options.
- In left menu, click Add-ins.
- Click Go button in Add-ins dialog.
- You need to unmark abDocs Word Addin. If you remove it, the issue should be solved.