How to Embed Microsoft office in Win form?

前端 未结 1 2021
天涯浪人
天涯浪人 2020-12-22 09:28

I am in trouble to host the MS Office in Win form. After doing google i have come across that microsoft has removed dsoframer.ocx. So can anyone please help me how should i

相关标签:
1条回答
  • 2020-12-22 09:59

    What you are looking for is called OLE, Object Linking and Embedding. Originally released in 1990, Microsoft Office was the last main Microsoft product that still supported it. Time has not been kind to OLE, the protocol was complicated and very hard to get right. Also very detrimental to program stability, you would not just import another program's windows and UI but all of its bugs as well.

    Notable is that the .NET framework shipped without any support for it at all. Office 2007 was the last one that supported it but there were several nasty and unsolvable problems with it. DsoFramer was removed from the Microsoft servers just before Office 2010 beta was released.

    This is gone forever and won't come back. Move forward by embedding your UI into the Office program, not the other way around. Very well supported in VS with its Office project templates. There are 3rd party products that support embedding a word processor or spreadsheet in your own program.

    0 讨论(0)
提交回复
热议问题