Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
URGENT - Automation of Word Document.
Message
De
26/11/1998 12:59:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00161810
Message ID:
00161813
Vues:
18
>Hi, I need help.
>
>I only need to open a Word document and search & replace one string.
>
>I'm trying, but don't work.
>
>My code is the follow:
>
>loWord = CreateObject( "word.basic" )
>loWord.FileOpen( "C:\MyDocs\Doc1.doc" )
>loWord.EditFind.Execute( "##SearchText##", .t., .t., , .t., 1, , "Replace String", 1 )
>
>At this point, I receive an error code from OLE Server.
>
>Any suggestion ???
>
>Thanks In advance!!!!!!
with loWord
 .startofdocument	&& Go to start
 .EditFindClearFormatting	&& Start a find&replace
 .editfind("Owner","Boss",0,0,0,0,0,0,,1,,1)   && Replace "Owner" with "Boss"
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform