Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OLEObject is not working #1337

Closed
SomayaMomtaz opened this issue Apr 9, 2018 · 0 comments
Closed

Add OLEObject is not working #1337

SomayaMomtaz opened this issue Apr 9, 2018 · 0 comments

Comments

@SomayaMomtaz
Copy link

SomayaMomtaz commented Apr 9, 2018

this is sample 16
expecting object added as icon or inline text or as object but nothing added i tried with diffrent files but still not working

no object added to word document in the result

<?php
require __DIR__ . '/vendor/autoload.php';

$phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection();
$section->addText('You can open this OLE object by double clicking on the icon:');
$section->addTextBreak(2);
$section->addOLEObject('resources/_sheet.xls');


### Context

* PHP 5:
* PHPWord version: 0.14
windows7 ultimate sp1
MS Office 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant