Search and extract text in MS Word

Discussion in 'Python' started by questioner, May 25, 2004.

  1. questioner

    questioner Guest

    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 ... ?
     
    questioner, May 25, 2004
    #1
    1. Advertising

  2. 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
     
    Thomas Guettler, May 25, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. crazyprakash
    Replies:
    4
    Views:
    3,433
    adrian
    Oct 30, 2005
  2. Replies:
    1
    Views:
    1,961
    mlimber
    Oct 3, 2005
  3. Abby Lee
    Replies:
    5
    Views:
    473
    Abby Lee
    Aug 2, 2004
  4. Carstonio
    Replies:
    5
    Views:
    187
    McKirahan
    Aug 19, 2006
  5. Guest
    Replies:
    4
    Views:
    313
    Guest
    May 12, 2006
Loading...

Share This Page