Automatic word documents printing failure
| From: | Nick | Date: | Thu, 21 Apr 2005 17:19:44 +0000 |
| Subject: | Automatic word documents printing failure | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-25893@lists.php.net to get a copy of this message | ||
hey,
i have generated some word files, based on an template with bookmarks, this
works.
Then i saved the files, and putted the path into an array. then i wanted to
print those files, but i always get this message. i am printing with a
network printer
"Wait till all document in process are completed"
or something like that mine is in dutch, "wacht tot alle in behandeling
afdruktaken zijn voltooid!"
my code
$printerlocation = "\\\\Glenn\\hp deskjet 990c";
content of array $afteprintenbestanden ==>> 2 files
c:\program files\apache group\Apache\htdocs\steon\klanten\Brutyn
Nick\briefVDAB.doc
c:\program files\apache group\Apache\htdocs\steon\klanten\Murat
Cetinkaya\briefVDAB.doc
$word->ActivePrinter = $printerlocation ;
for( $k = 1; $k < count($filestoprint); $k++)
{
$file= $filestoprint[$k];
$word->Documents->Open($file);
$word->ActiveDocument->PrintOut();
$word->Documents[1]->Close(false);
}