Posted by Csaba Gabor on 07/24/06 22:49
Alvaro G. Vicario wrote:
> *** Csaba Gabor escribió/wrote (24 Jul 2006 05:27:59 -0700):
> > <?php
> > $path = "c:\\path\\to\\word\\document\\mydoc.doc";
> > $doc = new COM($path);
> > $doc->Application->visible = true;
> > ?>
>
> According to PHP manual, COM constructor doesn't expect a file name:
That's why I posted. It wasn't entirely clear to me whether my
construct was legal under PHP. But, if you read my subsequent post,
you saw that that was not what the errors were due to.
....
> In my computer, the code just crashes PHP interpreter.
The code I gave was for PHP 5.2 on Win XP Pro (and Word 2003).
The calls with COM code are significantly different for PHP 5 vs. PHP
4.
What machine/PHP/Word are you using?
Csaba
[Back to original message]
|