473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 31529
On 30 Jan 2004 07:13:12 -0800, Sh**********@hotmail.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******@ameritech.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******@ameritech.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
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...
0
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...
1
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...
7
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
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...
10
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...
0
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 =...
3
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...
10
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.