VB中的OLE对象怎样操作?

[复制链接]
查看11 | 回复0 | 2009-1-30 06:28:38 | 显示全部楼层 |阅读模式
怎样才能把VB窗体中嵌如的OLE对象用指定的路径和文件名保存在硬盘里呀?真苦恼。用ole1.savetofile保存的并不是原来嵌入的文件,用action我也没有找到可以指定路径的操作。怎么办?急~~~~~~~~~~~~~~~~~~~~~

                                                                                                ole对象很不方便,你还是用打包吧                                       
提问者对答案的评价:

                                                                                                ActivationHome |Overview |How Do I |Sample |TutorialThis article explains the role of activation in the visual editing of OLE items. After a user has embedded an OLE item in a container document, it may need to be used. To do this, the user double-clicks the item, which activates that item. The most frequent activity for activation is editing. Many current OLE items, when activated for editing, cause the menus and toolbars in the current frame window to change to reflect those belonging to the server application that created the item. This behavior, known as in-place activation, allows the user to edit any embedded item in a compound document without leaving the container document’s window. It is also possible to edit embedded OLE items in a separate window. This will happen if either the container or server application does not support in-place activation. In this case, when the user double-clicks an embedded item, the server application is launched in a separate window and the embedded item appears as its own document. The user edits the item in this window. When editing is complete, the user closes the server application and returns to the container application.As an alternative, the user can choose “open editing” with the <object> Open command on the Edit menu. This opens the object in a separate window.Note Editing embedded items in a separate window was standard behavior in version 1 of OLE, and some OLE applications may support only this style of editing. In-place activation promotes a document-centric approach to document creation. The user can treat a compound document as a single entity, working on it without switching between applications. However, in-place activation is used only for embedded items, not for linked items: they must be edited in a separate window. This is because a linked item is actually stored in a different place. The editing of a linked item takes place within the actual context of the data, that is, where the data is stored. Editing a linked item in a separate window reminds the user that the data belongs to another document.MFC does not support nested in-place activation. If you build a container/server application, and that container/server is embedded in another container and in-place activated, it cannot in-place activate objects embedded inside it.What happens to an embedded item when the user double-clicks it depends on the verbs defined for the item. See Activation: Verbs.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行