I've read through most of the documentation on how to use COM to create MS Word
documents via PHP, but I'm still having some issues that I can't seem to find any help
on.
CODE:
Version)\n";
$word->visible = 1 ;
$word->Documents->Add();
$word->Selection->Typetext("This is a test");
?>
RE
Among other articles, look at the COM functions in PHP4 article:
http://www.phpbuilder.com/columns/
Alain
On Wed, Feb 28, 2001 at 11:35:15AM +0100, Daniel Tryba wrote:
> On Mon, Feb 05, 2001 at 03:05:24PM -0500, Conover, Ryan wrote:
> > I have been trying the following example from the PHP devel
On Mon, Feb 05, 2001 at 03:05:24PM -0500, Conover, Ryan wrote:
> 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 5
> $excel_handle = new COM("excel.applica
> I tried with FALSE same error.
>
> I also tried the following word example
>
> $word = new COM("word.application") or die("Unable to instanciate Word");
> print "Loaded Word, version {$word->Version}\n";
> $word->Visible = 0;
> $word->Documents->Add();
> $word->Selection->TypeText("Testing, te
[mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 3:01 PM
To: Conover, Ryan
Subject: Re: [PHP-WIN] Revised [PHP] COM and PHP
Try "FALSE" instead of "false"
Andris
mailto:[EMAIL PROTECTED]
+---
Monday, February 05, 2001, 10:05:24 PM, you wrote:
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 5
Visible = false; //line3
$worksheet = $excel_handle->workbooks->add(); //line4
$worksheet->Cells(1,1)->valu
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
Visible = false; //line3
$worksheet->Cells(1,1)->value = "Name"; //line4
$worksheet->SaveAs("temp.xls"); //line5
7 matches
Mail list logo