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;