Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 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 April 20th, 2004, 08:24 AM
Authorized User
 
Join Date: Jan 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Embedding an Excel spreadsheet in a VB application

Hi there,

I am writing a VB.NET application, which gets certain data from a spreadsheet.

Currently, the user has to edit the spreadsheet outside the application.

Is there a way that I can load the spreadsheet into a window of my application, so the user can edit it there? If so, can he still link certain cells to data contained in other external spreadsheets/data-sources, using the same method he'd use if the spreadsheet was stand-alone?

Hope you can help.

Thanks.

James

//##

 
Old April 20th, 2004, 11:18 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can use the System.Data and System.Data.OLEDB objects to access an excel spreadsheet, which should allow you to do updates through a control such as a DataGrid. You should be able to update in that manner.

Hope this helps,

Brian
 
Old April 21st, 2004, 10:07 AM
Authorized User
 
Join Date: Jan 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, Brian.

Thinking further... what I really need is not a "spreadsheet within my application", but simply a DataGrid.

However, a spreadsheet can have cells that pick up data from external sources (the particular source I am interested in is a data feed from Bloomberg).

My DataGrid would need to do the same. So the question really is - how do I link to Bloomberg from my VB application?
 
Old April 21st, 2004, 11:18 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

For distributed applications, you can use .NET remoting or XML Web services. Are you saying that you need to connect to a data source in Bloomberg which has the Excel files, or that the Excel spreadsheets connects to the data source?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Generate Excel spreadsheet with ASP.Net (VB) James Diamond ASP.NET 1.0 and 1.1 Professional 2 December 11th, 2013 08:15 AM
Embedding Files in Database with VB.NET miketayo Pro VB.NET 2002/2003 8 February 25th, 2008 01:16 PM
Embedding files in Database with VB.NET miketayo Classic ASP Basics 2 December 7th, 2006 06:54 PM
Excel Spreadsheet Help SteveV VBScript 0 October 10th, 2006 04:42 PM
Embedding Excel Spreadsheet in C# Hitesh_Golyan C# 1 December 2nd, 2004 09:59 AM





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