Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp And Ms Word
Message
De
01/12/2012 02:09:32
 
 
À
30/11/2012 21:05:58
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01558519
Message ID:
01558528
Vues:
63
Run the automation with Word visible for some time. I'm pretty sure that when you say that it hangs, Word is waiting for some form of confirmation.

>Hi!!!,
>
>
>I want to use MS Word from my VFP app, in order to keep a record of a doctor's patient visits.
>
>Any ideas?.
>
>I try to use:
>
>* =============================================
>loWord = CREATEOBJECTt("Word.Application")
>loWord.Documents.Add()
>loRange = loWord.ActiveDocument.Range()
>
>Select ficha (My View)
>Go top
>
>Scan
> loRange.InsertAfter(ficha.otrospadec + ' ')
>Endscan
>
>loWord.ActiveDocument.SaveAs("C:\clinica\Prueba.docx")
>
>loWord.Documents.OPEN("C:\clinica\Prueba.docx",.F.,.F.)
>
>Release loRange, loWord
>
>* =============================================
>
>Sometimes it works ok, some other times it hangs and leaves a copy of MS Word running, and, ... well, you get the idea.
>
>
>Any support will be great.
>
>Happy Holidays !!!.
>
>Thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform