Solved

Convert Word docs to simple text file

Posted on 2008-10-14
3
267 Views
Last Modified: 2008-10-31
How do I read a word file then convert the word file to a simple text file.  This would strip out all of the Word special characters etc?

The result would be a clean text file much the same as when you paste a word doc into notepad.
0
Comment
Question by:vstack
3 Comments
 
LVL 32

Expert Comment

by:Daniel Wilson
ID: 22711283
How about using Automation to have Word save the file as text?
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 22711380
Automation on a server (especially on a web server) is a really bad idea!

I use http://www.aspose.com/categories/file-format-components/aspose.words-for-.net-and-java/default.aspx
0
 

Author Comment

by:vstack
ID: 22726173
Sorry, I haven't responded.  Family emergency.  Automation won't work for me.  We have a ton of Word files with data (in sections of the files) that needs to be put into a database.  I was thinking of running a script that uploads the word file. Converts it to text (strips out Word special characters) and leaves me with a clean text file.  Now I can read the part I need and send to db.

Checking out the aspose article
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now