|
Subject:
|
Reading a Word Document Using ASP Code
|
|
Posted By:
|
ashoka_klt
|
Post Date:
|
9/9/2006 12:27:30 AM
|
Hi,
I am currently working with ASP. I need to read a word document using ASP code. I have to search some keywords in that document using the ASP code. But I have no idea about that. Please reply me if you know.
Thanks in Advance.
Ashok Kumar. K
|
|
Reply By:
|
Greg Griffiths
|
Reply Date:
|
9/10/2006 9:29:25 AM
|
check out http://www.greggriffiths.org/webdev/both/excel/ which shows methods of interacting with Excel from ASP on which you could base your code.
|
|
Reply By:
|
ashoka_klt
|
Reply Date:
|
9/14/2006 11:45:03 PM
|
Thank you very much, Your information is very worthful to me. I got those things from the link given by you. thank you, by, Ashok Kumar.K
|
|
Reply By:
|
sootz
|
Reply Date:
|
9/18/2006 3:15:00 AM
|
im sorry but that link doesnt help at all. all it says is how to create excel file from asp.
Can anybody help me out? I have a similar problem.
What if i have a textbox in msword with HTMLName = tbox1. How do I read in the value of tbox1 from asp? assuming the text file is already uploaded by client and it is at server side.
My situation is that every client will have this template form in either WORD or EXCEL that they fill up and upload this form on an asp webpage. Browser then shows a similar webform but with most of values filled up with inputs from the uploaded form. Reason for such implementation is so that clients can keep local copies and cut short fillups of online forms.
Any help greatly appreciated.
|
|
Reply By:
|
trenduin
|
Reply Date:
|
12/1/2006 2:23:58 AM
|
Here's some code that allows you to open a Word file and then save it as an html file, you can then work with it a little easier. On my server I got a Server.CreateObject failed, but that's just because Word isn't installed on the server. I tried it on one of my own servers and it worked fine.
DIM objWord, objDoc, dlg Set objWord = Server.CreateObject("Word.Application") objWord.documents.open Server.MapPath("test.doc") Set objDoc = objWord.documents(1).Content Set dlg = objWord.dialogs(84) dlg.Name = Server.MapPath("test.html") dlg.Format = 8 dlg.execute objWord.Quit SET objWord = Nothing SET objDoc = Nothing SET dlg = Nothing Response.Redirect "test.html"
|