Information générale
Titre:
Connection to WORD failed
I've installed application which in some part invoke WORD and do mail merge with selected data. Everything works fine with WORD 97. Yesterday, when I installed programm on a client machine (WIN98, WORD 2000) an error apeared.
Code is
lcConnectionString = "DSN=DBASE Files - Word;UID=;PWD=;SourceDB=" + This.cDataPath + ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=MACHINE;Null=Yes;Deleted=Yes;"
oWord = GetObject("","Word.Application")
IF TYPE("oWord") != "O" Then
oWord = CreateObject("Word.Application")
IF TYPE("oWord") !="O" Then
MESSAGEBOX("Could not start WORD!", 0, "Error")
RETURN .F.
ENDIF
ENDIF
In connection string I use DSN=DBASE Files because when I installed VFP (already installed FPW 26) merge with ODBC via FoxPro failed.
I don't know is it because of WORD 2000 or some code error? Error message is
OLE error code 0x8001010a: The message filter indicated that the application is busy.
If presented code is fine just for WORD 97, how can I change code for WORD 2000? If is that case, is there a way to detect which version of WORD is installed on a client machine?
Tnanks in advance.
P.S. It's urgent.
Suivant
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