How to embed excel in html document?

Is it possible to embed excel file displayed in one portion of a html page without using frameset?
or is it possible to embed another html page in one portion of a html page without using frameset?
I hope any expert can help me, thanks...
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

try this

<a href="myexcel.xls">Click here</a>
hello kenny
well this problem can be solve with the help of OLE Object link library ....
you hvae to use ASP with ur HTML Page for this type of functionality .
There is a Hint for u ...

 Dim a
set a = server.CreateObject("Class.Subclass")
search Class and subclass for related Product that u want to use (like Excel).
u can also search in ur System32 Folder in windows folder.
use this link for futrther Information : 


Dear kenny,

you don't want to use frameset, what about IFrame... use Iframe to embed excel file to any portion of you HTML page, use never get an idea that its a seprate page.

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

you should use the office web components (owc).
they only work on windows+internet explorers though, i don't know if that's a problem for your audience, but mozilla and the like wont work with them
get them here

and learn how to use them here
kenny_yapAuthor Commented:
hi fahimnxb, if i use iframe, then how can i put the content of excel to be displayed on iframe?
Dear kenny,

Read king_villy  comments....
you definitely need some server side script for it. However just make a html page... load you excel contents by a simple link...
<a href="excel.xls">EXCEL</a>.. and it seems that a part of your page is containing excel file.

If your server has MS OFfice or excel components installed you this will automatically invoke excel viewer in browser.

Quickest way is to save your excel spreadsheet as an html file.  Then just copy/paste the code it generates into your page.
kenny_yapAuthor Commented:
Actually, i am using ASP .NET and I Aspose.Excel component now, I want to generate excel report dynamically and I need the output to be displayed on the web page, i don't want using hyperlink.
Using office web components you can work with excel on the server as well as on the client.
You haven't told us what your server language is, but you could easily google up a few examples (asp + owc turns up thousands of articles)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ok ..Ok ..Ok ...Wait i got u kenny_yap ..
infact i was confused about ur question ...i mean about ur purpose this is the Right Soultion for Generating Dynmic Reports on a Page from Excelsheet
Soultion is in ADO.NET  ...and i suggest you should carry on this ofr dynmic reports.
ADO.Net Support Microsoft Excel as a DataStore and can retrive data from it ...
Every DataStore have a Driver . u can say Microsoft is a Data Provider and by using it u can get data from that data store.
fortunatly Microsoft Excel has its Data Provider for DotNET so u can use it ...
Steps are simple , and i hope u can do it very eaisly ...

1)      Create a Connection Strign from UDL  
File .
User these Classes
->  OLEDataReader
->  OLEDataCommand
->  OLEDataConnection
then after that u can assosiate this DataReader Object with a Grid on ur page
objDataGrid.DataSource = objDataReader
ObjDataGrid.DataBind( )

thats it ...
if u need my help u can ask me again ...

I know this is tuff but this will be best and better way to do things in right direction and as wel as it iwll be better for u in Future Needs.........Even if u need my help again i can send u a Sample Project ....
-Villy  (sorry again)

there were a few possible solutions posted
Jill SearcyLMS AdministratorCommented:
In my case, I want to embed MS Office documents in html so I can control what is done with them (restrict them from doing 'save as', copy and paste, etc.) - which I can do on the intranet using javascript.
I can embed MS Word documents in html, but the same script does not work for Excel and Powerpoint, no matter what mime type I use. Any ideas?
Here is a snippet of the successful code:
<OBJECT DATA="Associate Tracking Form.doc" TYPE="application/msword" width="800" height="600"> </object>

Any help is most appreciated.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.