We have a program created in Borland Delphi that uses Word to create documents. On the installation (terminal server), we can only make Word Automation work at startup as a local administrator.
When runnnig as anoter user, we get the error message "Opdracht mislukt -2146824090" (its Dutch version of Office), which I believe is translated into "Operation failed" or "Command failed".
The user has read / write access to the folder in which the program tries to place a new document.
Office 2010
64-bit Windows Server 2008 R2
Application - 32-bit Windows application.
If I add a delay (500 ms) after creating the word. application, everything works as normal.
WordApp := CreateOleObject('Word.Application');
sleep(500);
Doc := WordApp.documents.Open(sFile,EmptyParam,true);
Does anyone know why the CreateOleObject command now returns before the Word application can be used?
source
share