473,324 Members | 2,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Data Extraction from MS Word

I have data from a clinical trial, where each record has
been stored on a network drive in (of all things) a MS
Word document. The documents were created with a
template, so the location of the data within the document
should be consistent. The question is: is there a way
for me to extract the data out of a document so that I
can send it on to a real database?
Nov 20 '05 #1
1 1160
Yes, Import System.Runtime.InteropServices

Then add a reference to the Word Library you have one your local machine.
Word 9.0 for instance.

Then, you can walk the network drive open the docuement and use either
Word's Find method, or grab all the text and parse it with a Regex.

You can even record a macro to get you through finding the code to do
this...

HTH,
Bill
"KenB" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
I have data from a clinical trial, where each record has
been stored on a network drive in (of all things) a MS
Word document. The documents were created with a
template, so the location of the data within the document
should be consistent. The question is: is there a way
for me to extract the data out of a document so that I
can send it on to a real database?

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Glenn Gomes | last post by:
STPT is an invaluable tool if you need to import or extract data from any text (ASCII) file. STPT data makes dealing with ASCII data easy and efficient through a graphical user interface where...
3
by: Kangol kangoll | last post by:
hi, i've been trying to figure out how to make visual basic start extracting text at a certain line to when i tell it to stop. I am making trying to make a program where it extracts text from a...
35
by: Troll | last post by:
Hi, I need to write a script which reads some data and reports the findings. Just to give you an idea the structure is similar to the following. Data input example: HEADING 1 **********...
3
by: captain | last post by:
Below is the sql for data with same date need to extract + or - 5 days data of same date also. How to also get data of + and - days related to same date. SELECT IM.Area, IM.Location,...
1
by: Jason Huang | last post by:
Hi, To make it short, how do we do the data extraction to MSWord using ASP.Net C#? Any help will be appreciated. Jason
2
by: Jason Huang | last post by:
Hi, Would someone show me how to do the data extraction to Excel in ASP.Net using C# web form? I am not familiar with VB, so I am asking someone to help me out! Any help will be appreciated. ...
1
by: madhukp | last post by:
Hello Everybody, I am fairly new to ASP.Net. I have a requirement to extract data from a number of similar word files and put it into database. Eventhough I could do it with VB.Net, I am not...
16
by: EM.Bateman | last post by:
Working on Visual Studio .Net I've implemented a class: #ifndef CONTRIBUTOR_H #define CONTRIBUTOR_H enum Gender {male=1, female, unk}; #include <iostream> #include <iomanip> #include...
2
by: 0658 | last post by:
Public Class Form1 Dim n As Integer = 0 Dim m As Integer = 0 Dim s As String Dim x As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.