addOLE

addOLE

BASIC / ADVANCED / PREMIUM

Inserts an OLE file (DOCX, XLSX, PPTX, DOC, XLS, PPT) into the current Word document.

Description
public void addOLE(OptionsOLE options) throws Exception

This method allows the insertion of an external OLE file into the current Word document.

Parameters

options

Option Type Description
src String The path to the OLE file (DOCX, XLSX, PPTX, DOC, XLS, PPT) that you want to insert into the Word document.
image String Use a custom image as icon. If not set, a default icon is added.
height Integer In pt. 35 as default.
width Integer In pt. 40 as default.
Code samples

Example #1

The resulting Word document looks like: