php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36725 printout gets in loop
Submitted: 2006-03-13 22:28 UTC Modified: 2006-04-19 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: tgal at rdslink dot ro Assigned:
Status: No Feedback Package: COM related
PHP Version: 4.4.2 OS: Windows
Private report: No CVE-ID: None
 [2006-03-13 22:28 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-11 17:14 UTC] sniper@php.net
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


 [2006-04-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC