Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi, Please let me know if it is ok to embed Excel/Word (Excel, Word 2010/2013) using WebBrowser control for enterprise applications. Is there any other alternate to embed excel in WinForm? I believe there are few registry changes required to make it to work. This link from Microsoft gives some information on how to embed Excel in Winform using the WebBrowser control http://support.microsoft.com/kb/304662[^]. But it seems that the article has been addressing only for Visual Studio 2005. Appreciate your clarifications/answers.
Posted
Updated 1-Aug-13 12:00pm
v2
Comments
Maciej Los 6-Aug-13 17:48pm    
What kind of functionality of MS Word or Excel do you need? In other words: why do you want to "embed"* Excel/Word to your application.
*- embedding Word/Excel in your application is not possible ;(
Coder.86 6-Aug-13 18:03pm    
Thanks for your reply. The requirement is to have all of the excel sheet generation capabilities (office will be available only in the Window servers - users will logon to the server to work on it) need to be controlled from the WinForm window. The users need to be shown only one instance that too in an embedded manner in the Winform window. They can't have any of the Office Ribbon>File Menu related UI (like New, Save, Open, Save as etc). This is what we are targeting for.
Status BreakPoint 6-Aug-13 19:48pm    
Just FYI. The DsoFramer.ocx may be able to host Excel / Word on Windows Form. Please check below link (Unfortunately, There is no English page).

http://support.microsoft.com/kb/311765/nl

1 solution

If you read on, the article you linked says that its not possible with future versions (greater than 2007) of Microsoft Office.

Take a look at this.[^]
 
Share this answer
 
Comments
Coder.86 6-Aug-13 17:37pm    
Hi Ron, You are not entirely correct. We can still embed office documents and work with interop components but with some tweaks to the registry. The link says it may not work but works. I am just curious about anyone using this methodology/any other to embed office documents in WinForms & their recommendations. I saw your link Office webviewer but we require the office document editing capabilities on a WinForm.

Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900