Solved

Convert Word docs to simple text file

Posted on 2008-10-14
3
268 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Asp.net mvc 5 5 43
Windows 10 IIS and Windows Authentication to SQL 21 54
Error in JQuery 5 39
.NET tools for adding thread safety to a web app? 3 17
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 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

19 Experts available now in Live!

Get 1:1 Help Now