Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
OLE (Object Linking and Embedding) is a technology by which users can work with documents containing “objects” created or edited by third-party applications. That is, OLE allows an editing application to export these “objects” to another editing application and then import them with additional content.
In this article, we will talk about inserting an OLE object and setting its properties, as well as inserting an online video into a document.
If you want OLE Object, call the insertOleObject method and pass it the ProgId explicitly with other parameters.
The following code example shows how to insert OLE Object into a document:
OLE objects can also be inserted into documents as images.
The following code example shows how to insert OLE Object as an icon. For this purpose, the DocumentBuilder class exposes the insertOleObjectAsIcon method:
Online video can be inserted into Word document from the “Insert” > “Online Video” tab. You can insert an online video into a document at the current location by calling the insertOnlineVideo method.
The DocumentBuilder class introduces four overloads of this method. The first one works with the most popular video resources and takes the URL
of the video as a parameter. For example, the first overload supports simple insertion of online videos from YouTube and Vimeo resources.
The following code example shows how to insert an online video from Vimeo into a document:
The second overload works with all other video resources and takes embedded HTML code as a parameter. The HTML code for embedding a video may vary depending on the provider, so contact the respective provider for details.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.