Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection to WORD failed
Message
De
16/01/2002 01:58:27
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Connection to WORD failed
Divers
Thread ID:
00605244
Message ID:
00605244
Vues:
48
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
Fil
Voir

Click here to load this message in the networking platform