Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2006, 12:27 AM
Registered User
 
Join Date: Sep 2006
Location: Chennai, Tamil Nadu, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading a Word Document Using ASP Code

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

 
Old September 10th, 2006, 09:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: High Wycombe, UK, United Kingdom.
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
 
Old September 14th, 2006, 11:45 PM
Registered User
 
Join Date: Sep 2006
Location: Chennai, Tamil Nadu, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old September 18th, 2006, 03:15 AM
Registered User
 
Join Date: Sep 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.


 
Old December 1st, 2006, 03:23 AM
Registered User
 
Join Date: Dec 2006
Location: Riverton, WY, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to trenduin Send a message via MSN to trenduin Send a message via Yahoo to trenduin
Default

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"





Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading a MS Word Document using VB.net pauljohns353 VB How-To 0 November 14th, 2006 06:26 AM
Reading from a word Document Thagi C# 2005 1 May 8th, 2006 08:17 PM
Reading MS WORD Document by VB.Net ocarroll General .NET 0 March 31st, 2006 02:17 AM
Reading word document from a java application meenu Pro JSP 1 March 22nd, 2004 05:11 AM
ASP - Word Document mapaquin Classic ASP Professional 1 August 11th, 2003 06:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.