Bug #66092 [Fbk]: Adding shadow to border on generated Word document fails

From: Date: Thu, 08 May 2014 16:19:57 +0000
Subject: Bug #66092 [Fbk]: Adding shadow to border on generated Word document fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185720@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66092&edit=1 ID: 66092 Updated by: ab@php.net Reported by: adam dot tallon at version1 dot com Summary: Adding shadow to border on generated Word document fails Status: Feedback Type: Bug Package: COM related Operating System: Windows Server 2008 R2 PHP Version: 5 Block user comment: N Private report: N New Comment: @adam dot tallon at version1 dot com, please post a worky reproduce snippet, your current containing things like "$this->mWord" are unfortunately not usable. Thanks Previous Comments: ------------------------------------------------------------------------ [2013-11-15 19:15:29] requinix@php.net PHP neither knows nor cares that you're trying to set a shadow. Word is the one throwing the exception, not PHP, and it does so for all sorts of situations - not just border shadows on a table. Speaking of which, here's someone who claims Table.Borders.Shadow=true never works. http://shaunakelly.com/word/styles/borders-in-table-styles.html As for what I was getting at earlier, it's quite possible that PHP 5 is executing faster than Word can handle the scripting. I see you added the table on the line before - maybe it's too soon to modify it. Try making the script pause for a second before continuing. ------------------------------------------------------------------------ [2013-11-15 09:22:53] adam dot tallon at version1 dot com Meant to add that the error is only thrown when the '$vTable->Borders->Shadow = TRUE;' line is set yo true, if it's set to FALSE then the document generates fine, which would indicate to me that there is a bug in passing a true value for shadows. Thanks for your feedback. ------------------------------------------------------------------------ [2013-11-15 09:12:39] adam dot tallon at version1 dot com The same version of word is being used on the old server and the new server, the only thing that's change is the version of PHP from 4 too 5. ------------------------------------------------------------------------ [2013-11-14 18:16:46] requinix@php.net I'm sure it's not a PHP bug. Have you considered that it's an issue with Word? Some very brief Googling suggests that even executing too quickly can cause this problem. ------------------------------------------------------------------------ [2013-11-14 09:44:51] adam dot tallon at version1 dot com Updated PHP version the issue is occurring on. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=66092 -- Edit this bug report at https://bugs.php.net/bug.php?id=66092&edit=1

« previous php.bugs (#185720) next »