|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-11 17:14 UTC] sniper@php.net
[2006-04-19 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 06:00:01 2025 UTC |
Description: ------------ I would like to print out Word documents, but it seems that the rpc call is in a loop or something, because the code never finishes loading the page, and the word process wont close, but the task manager shows no activity at all. I have more printers installed on the server, could this be a problem and there is no bug? Reproduce code: --------------- $myfileCOM="d:/tmp/sample.rtf"; $word = new COM("word.application") or die("Unable to instanciate Word"); $word->visible = true; $word->Documents->Open($myfileCOM); $word->ActiveDocument->PrintOut(); $word->Quit(); $word = null; Expected result: ---------------- The document should be printed out and php should finish processing the sourcefile. Actual result: -------------- Endless loop, no printing, page wont load.