Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 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 September 16th, 2004, 04:35 AM
Authorized User
 
Join Date: Sep 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Opening Excel and Excel files

Hi there,

I am sorry for bothering you guys.

I am using VB.net and need to open applications like excel.
Also i would like to open excel files and play around with the data, what is the best way to do this ? i have tried objReader, but it does not work.

Thank you very much

 
Old September 16th, 2004, 01:38 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

You can start external applications like excel by using:

System.Diagnostics.Process.Start("excel.exe")

As for playing around with the data, you will probably need to pick up a book as there is more to it than the one line of code that I listed above. Excel has it's own object model that you can use and can do that by adding a reference to the Microsoft Excel 9.0 Object Library.

J
 
Old September 16th, 2004, 03:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

check out http://www.greggriffiths.org/webdev/both/excel/ which covers this.
 
Old September 17th, 2004, 03:22 AM
Authorized User
 
Join Date: Sep 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I dont have the Excel 9.0 Object library,

I have the version 10.0

Will it make much difference ?
Also, where can i get more info about using the object library ?

Been to the website listed above, but it does not work in vb.net 2003

Cheers







Similar Threads
Thread Thread Starter Forum Replies Last Post
Error opening Excel 2007 files in Express Edition Exsharaen Visual Basic 2008 Essentials 2 April 25th, 2008 01:47 AM
Problem in opening excel file in MS Excel 2000 kallol Visual C++ 0 November 16th, 2007 05:48 AM
Merge many excel files into one excel files Roshanjoshi2001 Excel VBA 2 November 14th, 2007 06:23 PM
Opening XML with Excel boblavinsky XSLT 0 January 11th, 2007 09:18 PM
Opening Excel bomber Access VBA 4 November 28th, 2006 11:33 PM





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