Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Word.doc in Excel.xls
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00920206
Message ID:
00920226
Views:
17
This message has been marked as the solution to the initial question of the thread.
If you are talking about using excel automation from VFP, and you want to insert a word document into Excel sheet, then try this:

ObjExcel.ActiveSheet.OLEObjects.Add(,"C:\books.doc")

The syntax is:

* .Add(ClassType, FileName, Link, DisplayAsIcon, IconFileName, IconIndex, IconLabel, Left, Top, Width, Height)

>I am using excel to bring together different stuff:
>
>
>VFP data, Tiff files and now I have to add word docs.
>
>This is a printing program to print out a complete dossier for a certain claim, claim data, diaries, notes, scans and letters.
>
>I just don't know how to add the letters.
>
>Anybody aver tried something like this?
>
>
>Peter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform