addOLE

addOLE

TRIAL / ADVANCED / PREMIUM

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

Description
public addOLE ( array $options )

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

Parameters

options

An array with the available options.

The possible keys and values are:

key 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 int In pt. 35pt as default.
width int In pt. 40pt as default.
Exceptions

OLE file format not supported.

File does not exist.

Image does not exist.

Code samples

Example #1

The resulting Word document looks like: