Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 9th, 2004, 08:30 AM
Friend of Wrox
Join Date: Apr 2004
Location: San Francisco, CA, USA.
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is this Office Automation with COM?

Is there a simple way to open Word and Excel documents in VB.NET for basic data extraction, without using COM to open instances of Word and/or Excel?

I basically want to have a program that runs on a file server which traverses through particular directories and opens certain Word, Excel, XML or plain text documents to extract data from them in order to populate a database. Obviously I have XML and plain text pretty well covered, but the File server won't have Office running on it, and since it's not doing any real automation within the documents, it doesn't seem like it would need to.

So, is there a way for VB.Net to open say, a Word document and traverse through it's objects in order to extract data, without opening an instance of Word?

Any ideas where I could look? The online lit. seems to all be about externally automating instances of Word, Excel etc. in order to get them to do something.


Aaron Edwards

  #2 (permalink)  
Old July 9th, 2004, 02:12 PM
Friend of Wrox
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts


Excel can be accessed through ADO.NET. You set the extended properties to point to the appropriate version of excel.

Hopefully this will help: http://support.microsoft.com/default...N-US%3BQ316934.

If you save the document as a rich-text file or text file then maybe, but a word document I don't know about. I think with XP version and 2003 you can use the Word and Excel to save content as XML, but never messed with them.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Office Automation- open word document ayazhoda Access VBA 2 November 4th, 2008 12:01 PM
Out of Office patriciacardoza BOOK: Access 2003 VBA Programmer's Reference 1 August 25th, 2004 04:25 PM
Office automation & ASP issue Greg Griffiths VBScript 2 July 5th, 2003 05:42 PM
ASP & Office Automation Greg Griffiths Classic ASP Basics 0 July 3rd, 2003 10:52 AM

All times are GMT -4. The time now is 05:36 PM.

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