473,548 Members | 2,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Embed Excel Workbook Inside Form VB .NET

Does anybody know how to embed an Excel Worksheet into a (vb .net)
form?

I want the worksheet to appear as though it's a control on the form
with all the functionality of a worksheet. I don't necessarily need
all the toolbars because I will write code to manipulate the sheet
from the back end.

I've imported the Excel Object model reference but I'm at a loss of
how to display a worksheet object inside the form.

Thanks,
Shawn

PS
Excel 10.0 Object model
Windows XP
1.1 .NET Framework
Nov 20 '05 #1
2 31546
On 30 Jan 2004 07:13:12 -0800, Sh**********@ho tmail.com (Shawn) wrote:

¤ Does anybody know how to embed an Excel Worksheet into a (vb .net)
¤ form?
¤
¤ I want the worksheet to appear as though it's a control on the form
¤ with all the functionality of a worksheet. I don't necessarily need
¤ all the toolbars because I will write code to manipulate the sheet
¤ from the back end.
¤
¤ I've imported the Excel Object model reference but I'm at a loss of
¤ how to display a worksheet object inside the form.
¤

Since there is no OLE control in VB.NET the only alternative is to use the WebBrowser control:

HOWTO: Use the WebBrowser Control to Open an Office Document in Visual Basic .NET
http://support.microsoft.com/default...b;EN-US;304643
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #2
> Since there is no OLE control in VB.NET the only alternative is to use the WebBrowser control:

HOWTO: Use the WebBrowser Control to Open an Office Document in Visual Basic .NET
http://support.microsoft.com/default...b;EN-US;304643
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)


I figured out that you can right click the toolbox, click "customize
toolbox", add the Microsoft Office Excel 10.0 COM component and you
now get a control just like I wanted. However, the worksheet that you
get doesn't have all the functionallity that a real excel sheet has. I
specifically was looking to import data as an excel web query.
Unfortunately, this part of the object model was not included in the
AxInterop.OWC10 reference that was added.
Any work around to using the "Tools -> Import Data -> WebQuery" part
of excel with the .Net Excel control add in?

Thanks Again,
Shawn
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
82456
by: Pawel | last post by:
Hello All I tried to embed Excel sheet into HTML page by following command: <iframe src="Tmp.XLS" width="100%" height="500"></iframe> and it works, showing Excel sheet inside the page, but there is no way I can save the Excel sheet after it has been change. The Excel menu is not active and the system is not asking whether I want to...
0
1535
by: VbUser25 | last post by:
hi.. i want to have link on clicking to which I want an excel workbook to be displayed... basically i think i will need to embed it into the table. I also want that when i open the predefined excel template i dont get the main menu (file, edit, view, insert,etc). My template has just 2 columns , data from one column is retrieved from the...
1
1201
by: VbUser25 | last post by:
hi.. sorry for posting again...but this is in ref to post http://www.developersdex.com/asp/message.asp?p=577&ID=%3COk6v7VdAFHA%2E2 08%40TK2MSFTNGP12%2Ephx%2Egbl%3E i am unable to figure out some way....so pls if anyone has implemented then do suggest me... i need to have a link on clickign to which i want excel workbook to open (a...
7
4087
by: Pierre | last post by:
Hi, Tryin to use this method : MyExcelObject.Application.ActiveWorkBook.set_Colors(int index, object RHS). But really don't know what this RHS is ? Any ideas ? Thks for help
1
3809
by: Jerry J | last post by:
I am sending Excel reports to web clients. Excel opens in internet explorer displaying multiple sheets. It is pretty simple to do and works well. To do it, a client clicks a link to an ASPX page that first generates Excel.htm files (query string contains parameters for the specific reports) then uses Response.Write() to stream and Excel...
10
41437
by: John Brock | last post by:
My VB.NET program pops up an Excel workbook for the user. If I initially create the workbook using: Workbooks.Add(Microsoft.Office.Interop.Excel.XlWBATemplate.xlWBATWorksheet) I end up with a workbook named "sheet1". If I use an existing Excel file as a template, e.g.: Workbooks.Add("C:\temp\MyTemplateFile.xls")
0
2783
by: f.oualid | last post by:
Hi, Would anyone know how I could open an already opened excel workbook. I have Windows Form with a button, and when clicked it opens the spreadsheet as follows string filename = @"C:\Documents\Test.xls";
3
3054
by: lmefford | last post by:
Alright, I've got a bit of a dilemma so I figured I would actually ask for some help. My girlfriend and I have been working on a program that she got commissioned to do for her brother and the gas station that he works at. It's a fairly straight-forward program; they are wanting to be able to save gas prices at various stations and the sort...
10
9654
by: afromanam | last post by:
Regards, Please help What I'm trying to do is this: (and I can't use reports since I must export to Excel) I export some queries to different tabs in an excel workbook I then loop through each tab and apply autowidth to columns and apply autofilter to the first row of every tab in the workbook. I've this down
0
7518
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7711
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7954
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6039
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5367
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5085
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1932
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1054
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.