Wrox Programmer Forums
|
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 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 July 9th, 2004, 08:30 AM
Friend of Wrox
 
Join Date: Apr 2004
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.

Thanks!

Aaron Edwards

 
Old July 9th, 2004, 02:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

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.

Brian





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





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