Hi David,
Saturday, I spent most of my day at work trying to figure out this problem. I installed my application in two NT PCs with no luck. I also, tried installing the app in my WIN98 laptop at home. No luck either. However, this time I was getting either an "ACTIVEDOCUMENT does not evaluate to an object" or "OLE server threw an exception error".
I was supposed to had handed my client this "Billing System" today, however, as you can image, that will not happen.
I trully believe that this is an issue with VFP 6.0. I use VB 6.0 and the way I obtain the VBA equivalent code is by recording Word macros, editing them and extracting the code. I then translate that code into VFP code.
I have been doing work with VB for about 5 years, and xBase and VFP since dBase II.
When I first created my Word97 document creation code, I had it on a stand alone form and all calls were in a procedure file. At that time, I had no problem whats so ever except for an occassional "OLE server threw an exception error". Now, I have incorporated these call within one form that contains the following other OLE objects:
Microsoft Tree View Ver. 6.0
Microsoft ImageList Ver. 6.0
Microsoft ListView Ver. 6.0
Microsoft Status Bar Ver. 6.0
The only thing that I can think of trying next is to place all of those Word97 OLE calls in a class, just the way you did it.
I don't know what else to try at this point. However, I can not believe that I am the only one in the VFP 6.0 to have experienced these Word97 interaction problems.