Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search Word Doc without automation

Status
Not open for further replies.

ormsk

Programmer
Sep 30, 2002
147
GB
Using VB6, I want to give users the ability to search a folder that contains .doc files that have certain words, specified by the user contained in them. However, I wanted to do this without automation.

I thought about opening the .doc as a text file and searching for text, but of course Word will have various strings in there regarding formatting and may return a doc that does not have that word in there as pure text.

**********************************
There is more than one way to skin a cat...but who wants a skinned cat?
 
If it's always in the same folder(s), Microsoft's indexing service may be your solution.

 
I will be creating a front end that allows users to enter a series of words, with an AND and an OR option, along with other searchable criteria.

This will return a list of documents along with the number of occurrences of the entered word(s), so it something I want to develop. Also, there are other applications I will be developing which could incorporate similar functionality.

**********************************
There is more than one way to skin a cat...but who wants a skinned cat?
 
From what you have told me, I believe you can use indexing service. But as per my first comment, will these documents always be in the same folder(s)?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top