Hello friends
I donot knowthat how should i take the data fetched from mysql on the excel sheet using the php code can any body suggest me,
while i am using the code to display a word doc using com i got this error and output::
Loading version,v.10.0
Warning: (null)(): Invoke() failed: Exception occurred. Source: Microsoft Word Description: Could not open macro storage. in c:\inetpub\wwwroot\exceldisplay.php on line 5
Warning: (null)(): Invoke() failed: Exception occurred. Source: Microsoft Word Description: The requested member of the collection does not exist. in c:\inetpub\wwwroot\exceldisplay.php on line 7
and i am using this code:
<?php
$word=new COM("word.application") or die("Can't start word");
echo"Loading version,v.{$word->Version}<br>";
$word->Visible=1;
$word->Documents->Add();
$word->Selection->TypeText("Hello");
$word->Documents[1]->saveas("c:\wordtest.doc");
?>
can u suggest me something or tell me other method to do this