#36725 [Opn->Fbk]: printout gets in loop
ID: 36725
Updated by: sniper@php.net
Reported By: tgal at rdslink dot ro
-Status: Open
+Status: Feedback
Bug Type: COM related
Operating System: Windows
PHP Version: 4.4.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-03-13 22:28:49] tgal at rdslink dot ro
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36725&edit=1
Thread (2 messages)