Current location: Hot Scripts Forums » Programming Languages » ASP » Reading MS Word text with ASP.


Reading MS Word text with ASP.

Reply
  #1 (permalink)  
Old 04-09-05, 09:15 PM
af11kcc's Avatar
af11kcc af11kcc is offline
Newbie Coder
 
Join Date: Sep 2003
Location: MX
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Reading MS Word text with ASP.

I have several MS Word documents in the server. I need to write some code to read the docs text content and store the data in a db.
Is it possible to read MS Word content with just ASP?
__________________
<%= af11kcc %>
Reply With Quote
  #2 (permalink)  
Old 04-10-05, 08:12 AM
koncept
Guest
 
Posts: n/a
yes it should be possible but you would have to read past all the header information once that is doen it is basicaly just like any txt file

open one of the ones you want to work with in notepad and see if you can figure it out if you can then you should be able to make it work, if you get stuck i should be able to try and write a function
Reply With Quote
  #3 (permalink)  
Old 04-11-05, 07:51 PM
af11kcc's Avatar
af11kcc af11kcc is offline
Newbie Coder
 
Join Date: Sep 2003
Location: MX
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks koncept, I have tried that but the stream stops after displaying " ÐÏࡱá". I have checked the file with notepad and there is the info from the header and down below the text I intend to extract and some additional info.
I have tried skipping chars, skipping lines, but can't have the stream to get to where the text is...
There must be a way.
__________________
<%= af11kcc %>
Reply With Quote
  #4 (permalink)  
Old 04-11-05, 10:09 PM
koncept
Guest
 
Posts: n/a
i will try to write some code and see what i come up with
Reply With Quote
  #5 (permalink)  
Old 04-11-05, 10:23 PM
af11kcc's Avatar
af11kcc af11kcc is offline
Newbie Coder
 
Join Date: Sep 2003
Location: MX
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks a lot.
__________________
<%= af11kcc %>
Reply With Quote
  #6 (permalink)  
Old 04-12-05, 10:39 AM
koncept
Guest
 
Posts: n/a
i've tried all i know so far with no luck, im gonna say ask maddog (maddog...hint hint...come help)
Reply With Quote
  #7 (permalink)  
Old 04-13-05, 01:33 AM
MadDog MadDog is offline
Code Master
 
Join Date: Aug 2003
Posts: 935
Thanks: 0
Thanked 0 Times in 0 Posts
lol i was actually wondering if you where going to create the code or not

"Is it possible to read MS Word content with just ASP?"

No its not. You will need to use a component since a MS Word document can not be read just by opening the raw file.
__________________
Drew Gauderman
ASP - MSSQL Coder / Buisness Owner / Coder for Hire!
MSN-ICQ-AIM-YIM in Profile

http://www.iportalx.net an easy ASP portal system.
Reply With Quote
  #8 (permalink)  
Old 04-13-05, 10:41 AM
af11kcc's Avatar
af11kcc af11kcc is offline
Newbie Coder
 
Join Date: Sep 2003
Location: MX
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks MadDog, can you suggest a component?
__________________
<%= af11kcc %>
Reply With Quote
  #9 (permalink)  
Old 04-15-05, 04:50 AM
MadDog MadDog is offline
Code Master
 
Join Date: Aug 2003
Posts: 935
Thanks: 0
Thanked 0 Times in 0 Posts
sorry ive been alway for the last few days. Have you tried searching google and hotscripts?

ive never had the need to find a ms word component, so i cant really suggest any.
__________________
Drew Gauderman
ASP - MSSQL Coder / Buisness Owner / Coder for Hire!
MSN-ICQ-AIM-YIM in Profile

http://www.iportalx.net an easy ASP portal system.
Reply With Quote
  #10 (permalink)  
Old 04-15-05, 05:19 AM
<?Wille?> <?Wille?> is offline
Junior Code Guru
 
Join Date: Jan 2004
Location: Helsinki, Finland
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
if its just the content you want (regardless of format) then why dont just open the doc with Word and copy all to a txt file. after that asp can probably handle the rest
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
reading text from a file waji ASP 2 11-09-04 11:41 PM
E-Mail from ASP form to MS Exchange rschrab ASP 0 04-20-04 04:41 PM
MySQL Query problem Wraith PHP 5 03-06-04 05:16 PM
reading numbers from a text file ASHRAF C/C++ 1 02-16-04 04:31 PM
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 07:19 PM


All times are GMT -5. The time now is 03:22 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.