[PHP] COM question

2003-01-10 Thread [EMAIL PROTECTED]
How I can manage Word through PHP?
I have tried with the code indicated on PHP-guide (chm format)  but it does not
work.

?php
//test04.php
$word = new COM(word.application) or die(Non sono riuscito ad eseguire Word);

$word-Visible = 1;

$word-Documents-Add();

$word-Selection-TypeText(Questa è una prova...);
$word-Documents[1]-SaveAs(Prova inutile.doc);

$word-Quit();

$word-Release();
$word = null;

?

Warning: Invoke() failed: Eccezione. Source: Microsoft Word Description: Impossibile 
aprire la memoria macro. in C:\PHP\ENZO\test04.php on line 7

Warning: Invoke() failed: Eccezione. Source: Microsoft Word Description: Il membro 
richiesto dell'insieme non esiste. in C:\PHP\ENZO\test04.php on line 10


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] COM question

2003-01-10 Thread Marek Kilimajer
Sorry, either translates the error messages or post to a italian php 
mailing list

[EMAIL PROTECTED] wrote:

How I can manage Word through PHP?

I have tried with the code indicated on PHP-guide (chm format)  but it does not

work.



?php

//test04.php

$word = new COM(word.application) or die(Non sono riuscito ad eseguire Word);



$word-Visible = 1;



$word-Documents-Add();



$word-Selection-TypeText(Questa è una prova...);

$word-Documents[1]-SaveAs(Prova inutile.doc);



$word-Quit();



$word-Release();

$word = null;



?



Warning: Invoke() failed: Eccezione. Source: Microsoft Word Description: Impossibile aprire la memoria macro. in C:\PHP\ENZO\test04.php on line 7



Warning: Invoke() failed: Eccezione. Source: Microsoft Word Description: Il membro richiesto dell'insieme non esiste. in C:\PHP\ENZO\test04.php on line 10


 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] COM Question- Please Help

2002-01-31 Thread Mainolfi, Joe


This is what I am trying to do.  I am trying to add a border to the bottom
edge of a cell.  The Range and some other methods seem to not work with the
syntax that the VB editor in excel says.  Like Range in the vb editor is
Range(A1:B9).Select.  When I try this in php it gives me and error.  I
found that some of the functions are not recognized also.  Do I have to use
some other syntax?  Do you know where I can get a list of the available
objects that are available in php?
I want to select the range A1:E5
$sheet = Range( ??? );
$sheet-Select;



Thanks,


__   
Joseph D. Mainolfi Jr.
IT Specialist
American Bridge Company
1000 American Bridge Way
Coraopolis, PA 15108
(412) 631-1018 phone
(412) 631-2000 fax
[EMAIL PROTECTED]
http://www.americanbridge.net


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] COM Question

2001-02-05 Thread Conover, Ryan

Do I need to have anything special installed on the server (IIS) to call
excel and word with COM.

Ryan  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]