Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word and VFP sometimes it does...sometimes it doesn't
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00117590
Message ID:
00117956
Vues:
18
>>Hi Jim,
>>
>>Well, I'm pretty sure the code is not the problem since it usually works fine on my pc (of course)....it always works for the developer <s>. Anyway, I received a suggestion from a friend to get the software patch (SP1) for Word 97. I didn't know this even existed but finally found a patch on MS's web site. The file is SR1Off97.exe. I installed it and so far appears to be working. But we'll see....it's only since early this afternoon.
>>
>>Thanks for your response.
>>
>>Piper
>
>Piper,
>
>The reason that I asked about the code is that different versions of word expose different class names in the registry. If you are coding for Word 97 and the user machine has Word 6.0 or 7.0 installed, then your code may fail to create the object on you.

I have seen this problem also, and it usually had to do with an instance of Word being orphaned. I kill the instance and the problem is gone. To solve this in my apps that subclass word, I instance word in the init of the primary form and never do oword.quit until the form closes. I just set the visible property to .t. or .f. depending on what's going on. I've had no more problems.

John Harvey
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform