471,122 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

Search and extract text in MS Word

Hello everyone,

I want to find text and extract a rest of line after the found line till
line end.
Does anyone know how to do this?

Regards,

P.S. My code looks like this so far:
word = win32com.client.Dispatch("Word.Application")
doc = word.Documents.Add(filenamePath.doc)
search = doc.Content.Find
?... and then ... ?

Jul 18 '05 #1
1 2150
Am Tue, 25 May 2004 09:30:07 -0400 schrieb questioner:
Hello everyone,

I want to find text and extract a rest of line after the found line till
line end.
Does anyone know how to do this?


Hi,

I use wvware to extract the plain text of ms-word.

Then you can use the string methods of the standard
library.

This way you don't need win32 and it can run on unix, too.

http://wvware.sourceforge.net/

HTH,
thomas

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Sharif T. Karim | last post: by
3 posts views Thread by Carol | last post: by
3 posts views Thread by jdworley | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.