The issue with the OleContainer is that it is a horrible UI. It pops up and then goes away - you can't leave it live. It works as I mentioned but it's ugly as sin from a UI perspective.
This is basically working through Ole In Place activation rather than ActiveDoc technology which is much more flexible, but unfortunately not directly available in VFP.
As to how you can get this to work if you really need to, this works for me when I try it:
THIS.AddObject("oWord","OleControl","Word.Document")
THISFORM.oWord.Top = 0
THISFORM.oWord.Left = 0
THISFORM.oWord.Height = 200
THISFORM.oWord.Width = THISFORM.Width
thisform.oWord.AutoActivate = 1
THISFORM.oWord.Visible = .t.
This works more generically because it doesn't include the Word version number. AutoActivate is the key.
+++ Rick ---
>Rick,
>
>I am far from an expert on this topic, but I think your reply (assuming I understand what you are saying) is not correct. I should be able to embed an Excel document in a form using an Ole Container control. I fact, I have done this previously elsewhere in my project. However, I did that all at design time. Put an OleContainer control on the form. This brings up the Insert Object dialog. Select the Create New radio button. In the Object Type listbox, select Microsoft Excel Worksheet. Click OK. The problem that I have with this strategy is that the OleClass of the resulting object is Excel.Sheet.8. Since I have Excel 2003 (version 11) installed on my system, I was interested in seeing if I could create a similar Ole embed using Excel 11.
>
>I appreciate all suggestions about this problem
>
>Thanks for your input.
>
>Jim