Look at this example :
http://www.phpbuilder.com/columns/alain20001003.php3?page=3
I think you forgot to activate the workbook, then to select the sheet and
then to activate the sheet before writing into the cell !
Yoann.
----- Original Message -----
From: Conover, Ryan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 05, 2001 9:03 PM
Subject: [PHP-WIN] COM and PHP
> I have been trying the following example from the PHP developer's cookbook
> and it keeps giving me the following error.
>
> Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 4
> <? file://line 1
> $excel_handle = new COM("excel.application"); file://line2
> $excel_handle->Visible = false; file://line3
> $worksheet->Cells(1,1)->value = "Name"; file://line4
> $worksheet->SaveAs("temp.xls"); file://line5
> $excel_handle->quit(); file://line6
> file://line7
> ?> file://line8
>
> Anyone that has Com and PHP experience help please
>
> Ryan
>
>
>
> --
> PHP Windows 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 Windows 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]