addOLE

addOLE

BASIC / 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. 49.8pt as default.
width int in pt. 76.2pt as default.
Code samples

Example #1

The resulting Word document looks like: