Click here to Skip to main content
14,548,033 members

extracting information from word file and storing it in the database

nautiyal.sudhanshu asked:

Open original thread
Hi there,
I am working on a requirement management system which should be able to extract requirements from the SRS and other Requirement specification documents, which are in the .doc or .docx format.
I want to store it in an access database.

I am using office11.0 library and dont want to process whole document {so dont want to first extract all text to another file or in memory and then perform search or other operation.

Can anyone please suggest me how to do it without usig any other 3rd party s/w or library.

Someway through which I can match the patterns in the word file and directly extract relevant data to the corresponding field in the database.

As I am new to .net Plz explain the process and any code examples will be greatly appreciated...

My data base has following fields
Req_ID (PK)
Req_Alias(string)
Req_Priority(string)
Req_Status(String)
Req_Stability(string)
Req_Type(string)
Req_Description(text)

The SRS or other documents are expected to have a format like:

Document Title[not needed]
[Some Text not needed]
Functional/NonFunctional Requirements:[Type comes from here]
1.[Req_Title]: [Req_desc].
2.[Req_Title]: [Req_desc].[other fild values will be picked from here]
[other text not needed]

I can't use xml as the documents can be in the older versions of office also.

Thanx in advance....
Tags: C#

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100