View Single Post
ישן 22-01-08, 16:16   # 4
Labs
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Nov 2007
גיל: 34
הודעות: 1,500
Send a message via Skype™ to Labs

Labs לא מחובר  

ציטוט:
נכתב במקור על ידי RS324 צפה בהודעה
PHP קוד:
<?php

$word 
= new COM("word.application") or die ("couldnt create an instance of word");

echo 
"loaded , word version{$word->version}";

//bring word to the front

$word->visible 1;

//open a word document

$word->Documents->Add();

//add some text to the document

$word->Selection->TypeText("this is some sample text in the document");

//save the document as sampleword.doc

$word->Documents[1]->SaveAs("sampleword.doc");

//close word

$word->Quit();

//free object resources

$word->Release();

$word null;

?>
אמממ אני יותר צריך EXEL את האמת זה יעבוד גם לזה?
  Reply With Quote