Skip to content

Conversation

irond
Copy link

@irond irond commented Feb 12, 2016

This fixes exception if you want to put checkbox inside textrun which is inside a table cell. See code above.

$table = $section->addTable();
$table->addRow();
$cell = $table->addCell(2000);
$textRun = $cell->addTextRun();
$textRun->addCheckBox('test', ' yes');
$textRun->addCheckBox('test', ' no');

@troosan troosan self-assigned this Dec 4, 2017
@troosan troosan added this to the v0.14.0 milestone Dec 4, 2017
@troosan troosan merged commit d4c6427 into PHPOffice:develop Dec 5, 2017
@troosan
Copy link
Contributor

troosan commented Dec 5, 2017

No sure why the FormField is allowed and not the CheckBox ...
I guess the CheckBox should be obsoleted in favour of the FormField.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants