Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combine n word documents to a new doc
Message
From
11/03/2010 06:22:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
11/03/2010 04:20:20
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01453867
Message ID:
01453881
Views:
43
>Hello Everybody
>
>I want to combine n smaller word documents to a new big word document via programm.(VFP9.2,Word 2003)
>open word
>add or insert or ??? 1.doc,2.doc,3.doc
>save as new.doc
>close word
>
>I found a lot about merging but no example for this simple? task.
>
>Any help welcomed
>Best regards
>Albert

I don't know the command, but for unknown commands, I would usually proceed as follows: Open the first document in Word - it may be an empty document. Then start saving a macro, and give the command - still in Word - to insert a document. Stop saving the macro, and look at the generated code. Some changes have to be made to adapt the resulting code to Word, but at least you know what commands are required.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform