Open document in NAS with Word Server2008

Benno67Benno67 Member Posts: 39
We are producing barcode labels thrue mailmerge. In our development environment all works fine, and it is running smoothly as a service-NAS.
In the production enviroment the solution refuses to work. All goes well untill the saved merge XML file is openend with word :
    cuAppManagement.LaunchApp(xmlData,guidStyleSheet,xmlApp);
    xmlApp.save(strFileNameResult);

    CREATE(objWord,FALSE); // start Word
    //objWord.Visible(TRUE); // Winword visible
    //objWord.Activate; // Winword active
    objWord.Documents.Open(strFileNameResult);

In the eventlog we get the following message:

The call to member ActiveDocument failed. Microsoft Word returned the following message:
Deze opdracht is niet beschikbaar omdat er geen document is geopend.
(The command is not availeble because the document is not openend)
the message resource is present but the message is not found in the string/message table

The solution works fine running on a client. It has previously been working on the NAS when it was started from the command prompt but isn't working anymore??. The NAS-user is a local admin. We tried a timer solution between save and open...
The only differences we can imagine are the servers (development Server2003, production Server2008)

Anyone any suggestions?

Benno

Answers

Sign In or Register to comment.