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?


    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. Advertisements

  2. Am Tue, 25 May 2004 09:30:07 -0400 schrieb questioner:

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

    Then you can use the string methods of the standard

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

    Thomas Guettler, May 25, 2004
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.