Problem with "Word Handler"

FragenFrager
Member Posts: 69
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):

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.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions