>>I am giving this command in Visual foxpro 3.0b on a win 3.11 machine
>>
>>myobject=createobject("Word.Basic")
>>
>>If word is on then no problem, it works fine, but if word is not on then I get this error message :-
>>
>>Ole Error Code 0x800401fe, Application was launched but it didn't register a class factory.
>>
>>Anybody having any ideas how I can Correct this..
>>
>>Thanks in Advance..
>
>
>Vinod, in the WrdBasic.hlp file, I found this information. It may solve your problem.
>
>Barbara
>
>*******************
>If Word is not running when another application needs to access it, OLE Automation attempts to start it. An error occurs if Word cannot be found. To register the location of Word, in File Manager (Windows 3.x or Windows NT) or Explorer (Windows 95), double-click WINWORD6.REG or WINWORD7.REG, located in your Word program folder.
>*******************
Thanks Barbara, I will check that file..
I want to ask you one more question, when I create a word object, how to close it ... After creating object and experimenting with it..
I just typed clear all and quit from foxpro, when I tried to close word , it was not getting closed, finally after pressing Ctl+Alt+Del, it showed me winword has stopped responding...
Any ideas abt that..
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement