-
Hey All I am new to phpoffice.
My question is if in one cell the data can not be entered, and get exception. is their a way to display what is the problematic data? and what is the cell position?
how in the catch I can add this additional data? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Basic PHP: try {
$sheet->setCellValueExplicit($cell,$innervalue, $dataType[0]);
//If the exception is thrown, this text will not be shown
} catch (Exception $e) {
echo "Failed to add cell {$cell} with value {$innervalue} with Exception ', $e->getMessage();
} |
Beta Was this translation helpful? Give feedback.
-
this is what finally worked
|
Beta Was this translation helpful? Give feedback.
this is what finally worked