How to use Office Primary Interop assembly in own application like Business in the box. Is it possible?
如何在框中的Business等自己的应用程序中使用Office Primary Interop程序集。可能吗?
1 个解决方案
#1
You can host Microsoft Office applications inside a control using the DSO Framer. You simply :
您可以使用DSO Framer在控件中托管Microsoft Office应用程序。你只需:
- Add a reference to DSOFramer COM dll.
- Right-click on your Toolbox in Visual Studio -> Choose Items -> COM Components -> DSO Gramer Control Object
- Drag a new DSO Framer on to your form or parent control
- And call
framerControl.Open(@"C:\SomeDocument.doc");
- it will work out which Office application to embed.
添加对DSOFramer COM dll的引用。
在Visual Studio中右键单击工具箱 - >选择项目 - > COM组件 - > DSO Gramer控件对象
将新的DSO Framer拖到窗体或父控件上
并调用framerControl.Open(@“C:\ SomeDocument.doc”); - 它将确定要嵌入的Office应用程序。
Alternatively you can use the Win32 API to embed other programs into a Panel control inside your own application.
或者,您可以使用Win32 API将其他程序嵌入到您自己的应用程序中的Panel控件中。
#1
You can host Microsoft Office applications inside a control using the DSO Framer. You simply :
您可以使用DSO Framer在控件中托管Microsoft Office应用程序。你只需:
- Add a reference to DSOFramer COM dll.
- Right-click on your Toolbox in Visual Studio -> Choose Items -> COM Components -> DSO Gramer Control Object
- Drag a new DSO Framer on to your form or parent control
- And call
framerControl.Open(@"C:\SomeDocument.doc");
- it will work out which Office application to embed.
添加对DSOFramer COM dll的引用。
在Visual Studio中右键单击工具箱 - >选择项目 - > COM组件 - > DSO Gramer控件对象
将新的DSO Framer拖到窗体或父控件上
并调用framerControl.Open(@“C:\ SomeDocument.doc”); - 它将确定要嵌入的Office应用程序。
Alternatively you can use the Win32 API to embed other programs into a Panel control inside your own application.
或者,您可以使用Win32 API将其他程序嵌入到您自己的应用程序中的Panel控件中。