Hosting Excel Appliaction as a contorl in .Net form

Hi every one,

I need to host Excel application inside my Application main Form that I am building?

I want to add it as a control same as web browsers in VS .Net from toolbox.

with webbrowsers control we can drop it in the form and then configure it.

How can be done with Excel or World?

[992 byte] By [Pivot35] at [2008-2-15]
# 1

Hi-

If you have Office 2003 (or earlier), you can use OWC (Office Web Components). There is a spreadsheet control, chart controls, rich edit control, and a few others.

To use this in VS.NET:

- right-click the Toolbox

- Choose Items...

- select the COM tab (OWC is a COM component)

- choose Microsoft Office Spreadsheet control

- drag n drop from the toolbox to the form

- start setting properties, writing code, etc.

You can read more about OWC online or in these forums. Note that OWC is no longer available starting in Office 2007 -- you can read more about that here: http://blogs.msdn.com/excel/archive/2006/07/17/668544.aspx

Hope this is what you needed.

Best,

Paul

PaulYuk_MS at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 2
Thanks Paul, it work.
Pivot35 at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...