Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
URGENT - Automation of Word Document.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
URGENT - Automation of Word Document.
Miscellaneous
Thread ID:
00161810
Message ID:
00161810
Views:
45
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!!!!!!
Lic. Esteban Bruno
Gerente de Sistemas
TASSO S.R.L.
Next
Reply
Map
View

Click here to load this message in the networking platform