如何嵌入外部文件? [英] How to embed external document?

查看:77
本文介绍了如何嵌入外部文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的好时光里,我相信人们正在使用神秘的技术,这个技术被称为COM +,以便将其他应用程序的文档嵌入到他们自己的内容中。

文件。


就像带有文档的Word,Windows Media Player或Excel或Visio文档

里面,双击它,* bang *你可以开始编辑它使用

Excel / WMP / Visio工具栏。


显然即使是OpenOffice也能做到这一点。


现在这里是我的问题:

我是新一代程序员。幸福地不知道这样的事情。

但是我想知道并在我的应用程序自己的文件中嵌入Word,Excel或其他类型的文件!


我怎么能这样做?


还有最新的技术(即:.NET API)吗?

In the good old days I believe people were using the arcane technology which
came to be known as COM+ to embed other application''s document in their own
document.

Like a Word with document a Windows Media Player or Excel or Visio document
inside, double click on it and *bang* you coud start edit it using
Excel/WMP/Visio toolbar.

Apparently even OpenOffice could do that.

Now here is my question:
I''m a new generation programmer. Blissfully ignorant of such thing.
But I would like to know and embed Word, Excel or other kind of document in
my application''s own document!

How could I do that?

And is there an up-to-date technology (i.e.: .NET API) to do that?

推荐答案

你好,劳埃德!


LD>就像带有文档的Word,Windows Media Player或Excel或Visio

LD>文件里面,双击它和* bang *你开始编辑它

LD>使用Excel / WMP / Visio工具栏。


LD>显然,即使是OpenOffice也可以做到这一点。


LD>现在这是我的问题:

LD>我是新一代程序员。幸福地不知道这件事。

LD>但我想知道并嵌入Word,Excel或其他类型的

LD>在我的应用程序自己的文档中的文档!


LD>我怎么能这样做?


使用COM-interop。


看看

http://support.microsoft.com/kb/302084/en-us )( http ://www.builderau.com.au/architec...9198903,00.htm


-

问候,Vadym Stetsyak

www: http://vadmyst.blogspot.com
Hello, Lloyd!

LD> Like a Word with document a Windows Media Player or Excel or Visio
LD> document inside, double click on it and *bang* you coud start edit it
LD> using Excel/WMP/Visio toolbar.

LD> Apparently even OpenOffice could do that.

LD> Now here is my question:
LD> I''m a new generation programmer. Blissfully ignorant of such thing.
LD> But I would like to know and embed Word, Excel or other kind of
LD> document in my application''s own document!

LD> How could I do that?

Using COM-interop.

Look at
( http://support.microsoft.com/kb/302084/en-us )( http://www.builderau.com.au/architec...9198903,00.htm )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com


Hi Lloyd,


Lloyd Dupont < net.galador@ld>在消息中写道

news:eh ************** @ TK2MSFTNGP04.phx.gbl ...
Hi Lloyd,

"Lloyd Dupont" <net.galador@ld> wrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
在过去的美好时光我相信人们正在使用神秘的技术,后来被称为COM +,将其他应用程序的文档嵌入到他们自己的文档中。

就像带有文档的Word一样将Windows Media Player或Excel或Visio
文档放入其中,然后双击它并*使用Excel / WMP / Visio工具栏开始编辑它。

显然甚至是OpenOffice可以做到这一点。

现在这里是我的问题:
我是新一代程序员。幸福地不知道这样的事情。
但是我想知道并在我的应用程序自己的文档中嵌入Word,Excel或其他类型的文档!

我怎么能那样做吗?

是否有最新的技术(即:.NET API)来做这件事?
In the good old days I believe people were using the arcane technology
which came to be known as COM+ to embed other application''s document in
their own document.

Like a Word with document a Windows Media Player or Excel or Visio
document inside, double click on it and *bang* you coud start edit it
using Excel/WMP/Visio toolbar.

Apparently even OpenOffice could do that.

Now here is my question:
I''m a new generation programmer. Blissfully ignorant of such thing.
But I would like to know and embed Word, Excel or other kind of document
in my application''s own document!

How could I do that?

And is there an up-to-date technology (i.e.: .NET API) to do that?




技术你在谈论它的OLE(对象链接和嵌入)。


正如Vadym所提到的,你可以使用COM Interop自动化WinWord,但

这一个对于OLE来说是不够的。


不幸的是,在Windows Forms本身,没有好的OLE支持

文档托管。在最坏的情况下,你必须使用MFC的OLE支持

非常复杂。


Marcus



the technology you are talking about it OLE (Object Linking and Embedding).

As Vadym has mentioned, you can use COM Interop to automate WinWord, but
this alone is not enough for OLE.

Unfotunately, in Windows Forms itself, there is no good suppot for OLE
Document hosting. In the worst case, you have to use MFC''s OLE support which
is quite sophisticated.

Marcus




" Lloyd Dupont" < net.galador@ld>在消息中写道

news:eh ************** @ TK2MSFTNGP04.phx.gbl ...

|在过去的美好时光,我相信人们正在使用奥术技术



|后来被称为COM +将其他应用程序的文档嵌入他们的

拥有

|文件。


COM +不是神秘的,与文档嵌入无关,你b / b
引用的是扩展的OLE或Active Document Containment,一个COM基于

技术。

|

|就像带有文档的Word,Windows Media Player或Excel或Visio

文件

|在里面,双击它和* bang *你可以开始使用

|编辑它Excel / WMP / Visio工具栏。

|

|显然,OpenOffice甚至可以做到这一点。

|

|现在这是我的问题:

|我是新一代程序员。幸福地不知道这件事。

|但我想知道并嵌入Word,Excel或其他类型的文件



|我的申请'自己的文件!

|

|我怎么能这样做?


使用像MFC这样的框架实现一个Active Document Container。请

查询MSDN以获取有关Active Document Containers的详细信息。


|

|是否有最新的技术(即.NET API)?

|

种类,.NET有Webbrowser。控件哪个是可以从

托管代码嵌入OLE服务器的容器,如Word,excel等..但是

技术仍然是OLE(即COM),并且因为

..NET而不会改变。

您也可以使用MFC(或Delphi)等工具创建自己的容器


威利。



"Lloyd Dupont" <net.galador@ld> wrote in message
news:eh**************@TK2MSFTNGP04.phx.gbl...
| In the good old days I believe people were using the arcane technology
which
| came to be known as COM+ to embed other application''s document in their
own
| document.

COM+ is not arcane and has nothing to do with document embedding, what you
are refering to is extended OLE or Active Document Containment, a COM based
technology.
|
| Like a Word with document a Windows Media Player or Excel or Visio
document
| inside, double click on it and *bang* you coud start edit it using
| Excel/WMP/Visio toolbar.
|
| Apparently even OpenOffice could do that.
|
| Now here is my question:
| I''m a new generation programmer. Blissfully ignorant of such thing.
| But I would like to know and embed Word, Excel or other kind of document
in
| my application''s own document!
|
| How could I do that?

Implement an Active Document Container, using a framework like MFC. Please
consult MSDN for details on "Active Document Containers".

|
| And is there an up-to-date technology (i.e.: .NET API) to do that?
|
Kind of, .NET has the "Webbrowser" control which is a container usable from
managed code to embed an OLE server like Word, excel etc.., but the
technology is still OLE (that is COM), and that won''t change because of
..NET.
You can also create your own container using a tool like MFC (or Delphi)

Willy.



这篇关于如何嵌入外部文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆