Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation
Message
From
02/05/2023 03:30:34
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
01686524
Message ID:
01686536
Views:
39
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
Previous
Reply
Map
View

Click here to load this message in the networking platform