Re: COM and PHP
| From: | Yoann Chevalier | Date: | Tue, 06 Feb 2001 08:47:53 +0000 |
| Subject: | Re: COM and PHP | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-windows+get-5406@lists.php.net to get a copy of this message | ||
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 <Rconover@americanbridge.net>
To: <php-general@lists.php.net>; <php-windows@lists.php.net>
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: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>