lun. 24 août 2015, 19h35
Guy BONEMME
atoutfox.public.association
Instabilité ou autre pb
Bonjour,
J'utilise depuis un certain temps la routine suivante (transmise par
Wilhem-Ion Praisach:
RESTORE FROM european.mem additive
LOCAL lcdoc,owrd,omot
SET DEFAULT TO "C:\Vfox9\Apps\A_chf\"
CREATE TABLE 2008_4(cMot C(100),nPage I)
lcdoc = "C:\Vfox9\Apps\A_chf\CHF_BUL_2008_4.docx" && ou .doc
owrd = CREATEOBJECT("word.application")
owrd.visible = .T.
odoc = m.owrd.documents.open(m.lcdoc)
FOR EACH omot IN odoc.words
IF !EMPTY(m.omot.text)
INSERT INTO 2008_4.dbf VALUES (m.omot.text,m.omot.Information(3))
ENDIF
NEXT
owrd.quit
j'ai en changeant de nom de fichier Word des choses bizarre.
Word s'ouvre (vide) et une erreur OLE :
OLEIDispactch exception code 0 from Microsoft Word: Fichier introuvable
Ce dernier est bien présent dans le répertoire, et de syntaxe similaire
hormis l'année ou le trimestre
Serait-ce un pb de Word?
Une idéee
--
Guy BONEMME
Atoutfox
BEfox
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000016673