Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation with Word
Message
From
03/11/1999 09:14:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/11/1999 08:44:48
Luca Meroni
Easy Consult S.R.L.
Milan, Italy
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00286030
Message ID:
00286060
Views:
20
>I've a great number of word documents.
>I must write a program that ask the user witch document he want and, for each document selected, I must require some parameter, non equal for each document.
>At the end, I must create a unique Word document that merge all the ones selected by the user, with the parameters inserted.
>
>Any suggestion, please ?????
>
>Thanks, Luca


Luca,
There have been many threads in the past regarding word ole. What you want might really be straightforward but I couldn't understand it well. What do you mean by "parameter", a word variable field ? If so :
.ActiveDocument.Variables("VarName").value = text
Merging is simple, just open the first one, go to insertion point (typically goto "\EndOfDoc" bookmark -or :
.ActiveDocument.Content.Select
.Application.Selection.Collapse(wdCollapseEnd)
.InsertFile(...)).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform