Thank you Borislav,
I work on a developement machine right now. And there the pathes do definitely exist. And the hold the template and the data source. On the client computers the path is built from an INI file.
The error is 1429. The message text is, that the mail merge main document does not have a data source.
I spent to much time already and will now change to a report solution.
Gerhard Schmidbauer
>Also where you open data source?
>oWord.ActiveDocument.MailMerge.OpenDataSource()
>
>
>>Hello Luis,
>>
>>sorry, but I did not mention, that this test program works. But the same code within my app has the effect, that the data source goes away, as soon as I load the template in Word with oword.Documents.Add(lcVorlag)
>>
>>Gerhard Schmidbauer
>>
>>>Hi Gerhard:
>>>
>>>In both cases (development and production) are you using the same logged-user? Could you show us part of your code? More important is how you generate the filenames and how you perform the merge.
>>>
>>>Luis
>>>
>>>
>>>>Thank you Tore,
>>>>
>>>>I do use full pathes already. Seems to be something else.
>>>>
>>>>Gerhard Schmidbauer
>>>>
Gerhard Schmidbauer
URANUS Software GmbH