General information
Title:
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only