newsgroups-index (beta)

Current group: dbase.bug-reports

OleAutoClient

OleAutoClient  
Brian Johnson
 Re: OleAutoClient  
Brian Johnson
 Re: OleAutoClient  
Jan Hoelterling
 Re: OleAutoClient  
Brian Johnson
 Re: OleAutoClient  
Erich Zippel
 Re: OleAutoClient  
Brian Johnson
From:Brian Johnson
Subject:OleAutoClient
Date:Sun, 12 Dec 2004 07:49:56 -0000
Hi all

Can anyone test the following extract from a program using dBASE PLUS 2.5
and 2.21
My tests under Win 2000 prof and 2.5 the Word application can not be found.
With 2.21 it is found with the first line oWord = new
OleAutoClient("Word.Application")

Brian Johnson
********* save all below as test01.prg***********
try
msgbox("Tried 1")
oWord = new OleAutoClient("Word.Application")
catch (exception e)
try
msgbox("Tried 2")
oWord = new OleAutoClient("Word.Application.7")
catch (exception e)
try
msgbox("Tried 3")
oWord = new OleAutoClient("Word.Application.8")
catch (exception e)
try
msgbox("Tried 4")
oWord = new OleAutoClient("Word.Application.9")
catch (exception e)
msgbox("WORD can not be located in your registry!"+;
chr(13)+chr(13)+;
"Please contact Brian Johnson",;
"Missing Application",48)
RETURN
endtry
endtry
endtry
endtry
if type("oWord") == "O"
? "Word found"
else
? "Word NOT found"
endif
return

***************************************************
From:Brian Johnson
Subject:Re: OleAutoClient
Date:Mon, 13 Dec 2004 06:41:53 -0000
Hi

Just to close this bug report. It was a false alarm caused by a corrupt
entry in the registry of my 2.5 test machine.
Have reloaded Word and all works fine.

Thanks for the very quick responses over this last weekend. Great service.

Brian Johnson
From:Jan Hoelterling
Subject:Re: OleAutoClient
Date:Sun, 12 Dec 2004 08:08:53 -0600
Hi Brian,

the lastest versions of Word are actually 10 (2002 or XP) and 11 (2003).

However, on my machine (XP Home, SP1, Office 2003), I get "Tried 1", "Word
Found"

HTH,

Jan
From:Brian Johnson
Subject:Re: OleAutoClient
Date:Mon, 13 Dec 2004 06:00:00 -0000
Thanks Jan

Will reload Word. Must be a registry problem on my 2.5 test m/c

Brian

"Jan Hoelterling" wrote in message
news:AYeweTF4EHA.1644@news-server...
> Hi Brian,
>
> the lastest versions of Word are actually 10 (2002 or XP) and 11 (2003).
>
> However, on my machine (XP Home, SP1, Office 2003), I get "Tried 1", "Word
> Found"
>
> HTH,
>
> Jan
>
>
From:Erich Zippel
Subject:Re: OleAutoClient
Date:Sun, 12 Dec 2004 09:38:57 +0100
Hi,

tested on: Win XP SP2, Word 2002
2.50: Tried 1
2.21: Tried 1

Erich Zippel

**************************

"Brian Johnson" schrieb im Newsbeitrag
news:Lwvav$B4EHA.1088@news-server...
Hi all

Can anyone test the following extract from a program using dBASE PLUS 2.5
and 2.21
My tests under Win 2000 prof and 2.5 the Word application can not be found.
With 2.21 it is found with the first line oWord = new
OleAutoClient("Word.Application")

Brian Johnson
********* save all below as test01.prg***********
try
msgbox("Tried 1")
oWord = new OleAutoClient("Word.Application")
catch (exception e)
try
msgbox("Tried 2")
oWord = new OleAutoClient("Word.Application.7")
catch (exception e)
try
msgbox("Tried 3")
oWord = new OleAutoClient("Word.Application.8")
catch (exception e)
try
msgbox("Tried 4")
oWord = new OleAutoClient("Word.Application.9")
catch (exception e)
msgbox("WORD can not be located in your registry!"+;
chr(13)+chr(13)+;
"Please contact Brian Johnson",;
"Missing Application",48)
RETURN
endtry
endtry
endtry
endtry
if type("oWord") == "O"
? "Word found"
else
? "Word NOT found"
endif
return

***************************************************
From:Brian Johnson
Subject:Re: OleAutoClient
Date:Sun, 12 Dec 2004 11:07:24 -0000
Erich

Thanks for the test. I will look in the register of my 2.5 machine and
possibly reload word.

Brian


"Erich Zippel" wrote in message
news:sOKKFbC4EHA.1088@news-server...
> Hi,
>
> tested on: Win XP SP2, Word 2002
> 2.50: Tried 1
> 2.21: Tried 1
>
> Erich Zippel
>
> **************************
>
> "Brian Johnson" schrieb im Newsbeitrag
> news:Lwvav$B4EHA.1088@news-server...
> Hi all
>
> Can anyone test the following extract from a program using dBASE PLUS 2.5
> and 2.21
> My tests under Win 2000 prof and 2.5 the Word application can not be
found.
> With 2.21 it is found with the first line oWord = new
> OleAutoClient("Word.Application")
>
> Brian Johnson
> ********* save all below as test01.prg***********
> try
> msgbox("Tried 1")
> oWord = new OleAutoClient("Word.Application")
> catch (exception e)
> try
> msgbox("Tried 2")
> oWord = new OleAutoClient("Word.Application.7")
> catch (exception e)
> try
> msgbox("Tried 3")
> oWord = new OleAutoClient("Word.Application.8")
> catch (exception e)
> try
> msgbox("Tried 4")
> oWord = new OleAutoClient("Word.Application.9")
> catch (exception e)
> msgbox("WORD can not be located in your registry!"+;
> chr(13)+chr(13)+;
> "Please contact Brian Johnson",;
> "Missing Application",48)
> RETURN
> endtry
> endtry
> endtry
> endtry
> if type("oWord") == "O"
> ? "Word found"
> else
> ? "Word NOT found"
> endif
> return
>
> ***************************************************
>
>
>
   

Copyright © 2006 newsgroups-index   -   All rights reserved   -   Impressum