Finding text inside Word doc without Word? 
Author Message
 Finding text inside Word doc without Word?

Is there a way to find text inside Word documents, on a computer where Word
is not available (only WordView), and where i can't use Find (advanced) from
W95.

Is it possible to create a prog witch can do this??

Any suggestion are welcome....

Stephan

--

To send E-mail, remove the spamblock ".rotzooi"
Om E-mail te sturen, verwijder de rotzooi.



Sun, 22 Oct 2000 03:00:00 GMT  
 Finding text inside Word doc without Word?

If you want to just search the files for text strings, open the files as
Binary files, read the file into a string variable and search for the text
string.  The following code will process the contents of a folder.

    fname = Dir$(path & "\*.doc")
    do until len(fname)=0
        Open path & "\" & fname For Binary as fptr
        flen = LOF(fptr)
        sBuffer = String(flen,0)
        Get #fptr,,sBuffer
        if Instr(sBuffer,SearchString) then
            ... 'Process the file however you want
        endif
        fname = Dir$
    loop

Quote:

>Is there a way to find text inside Word documents, on a computer where Word
>is not available (only WordView), and where i can't use Find (advanced)
from
>W95.

>Is it possible to create a prog witch can do this??

>Any suggestion are welcome....

>Stephan

>--

>To send E-mail, remove the spamblock ".rotzooi"
>Om E-mail te sturen, verwijder de rotzooi.



Sun, 22 Oct 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Finding text inside Word Docs without using Word

2. Finding text inside Word Docs without using Word

3. Finding text inside Word Docs without using Word

4. Printing multiple Word doc files without opening each in word

5. find/replace in a Word Doc using word object and vbscript

6. BuiltInDocumentProperties from non-Word text files + testing if a DOC file is a Word file

7. Opening Word Doc inside IE frame

8. Opening Word Doc inside an IE frame

9. Insert text from a text file into Word doc

10. Replacing Text in Text Boxes in Word Doc from VB

11. pasting a word doc into an email without losing paragraphing

12. Find multiple words Using MS Word Find

 

 
Powered by phpBB® Forum Software