View Single Post
ישן 22-01-08, 17:20   # 6
meshuga
הנהלת הפורום לשעבר
 
meshuga's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 7,601

meshuga לא מחובר  

ציטוט:
נכתב במקור על ידי 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;

?>
עובד רק בPHP5 - ווינדווס שמותקן עליו אופיס...תקן אותי אם אני טועה.
  Reply With Quote