Problem with "Word Handler"

FragenFragerFragenFrager Member Posts: 56
Hello,
At one of our customers, a single employee receives the following error message on his laptop when trying to create a Word document from NAV in the Version BC14 and Office 21 (sorry for the ridiculous size, but I really do NOT have the time to find out where to resize; in the MSDynamics-Forum it worked):

fjcjcce965x8.png




The following steps were then taken by the customer and me:

- Reinstalled Office package
- NAV client reinstalled on the affected computer
- Object status compiled through
- Registry entries checked.

Using the debugger I was then able to find out that the error message was generated at the following point (calling the function ldnWordHelper.CallOpen...)
LOCAL PROCEDURE lvdOpenDocumentInWord@1119403001(VAR rdnWordHandler@1119403001 : DotNet "'Microsoft.Dynamics.Nav.Integration.Office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.Microsoft.Dynamics.Nav.Integration. Office.Word .WordHandler" RUNONCLIENT;VAR rdnWordDoc@1119403004 : DotNet "'Microsoft.Office.Interop.Word, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.Microsoft.Office.Interop.Word.Document" RUNONCLIENT;VAR rdnWordApp @1119403005 : DotNet "'Microsoft.Office.Interop.Word, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.Microsoft.Office.Interop.Word.ApplicationClass" RUNONCLIENT;VAR rtxClientFilename@1119403000 : Text[250] ;vcoDocumentCaption@1119403002 : Code[20]);
    VAR
      ldnWordHelper@1119403003 : DotNet "'Microsoft.Dynamics.Nav.Integration.Office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.Microsoft.Dynamics.Nav.Integration.Office.Word.WordHelper" RUNONCLIENT;
      ldnWdWindowState@1119403006 : DotNet "'Microsoft.Office.Interop.Word, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.Microsoft.Office.Interop.Word.WdWindowState" RUNONCLIENT;
    BEGIN
      //rdnWordHandler := rdnWordHandler.WordHandler;
      rdnWordDoc := ldnWordHelper.CallOpen(rdnWordApp,rtxClientFilename,FALSE,FALSE);
      rdnWordDoc.ActiveWindow.Caption := vcoDocumentCaption;
      //rdnWordDoc.Application.Visible := TRUE;
      //rdnWordDoc.Application.WindowState := ldnWdWindowState.wdWindowStateNormal;
    END;

I also compared the Microsoft.Office.Interop.Word.dll with the version on a workstation where it works and at first glance I couldn't find any difference. Would it possibly make sense to copy the file from the computer on which it works? I'm a bit cautious, as there are sometimes "frictional losses" when copying and pasting.
Sign In or Register to comment.