HI 🙂
I have this code to export the text as .doc file but i's did't work under redhat server , so is there any way to do that ?
$word=new COM("word.application") or die("Cannot start word for you");
print "Loaded word version {$word->Version}\n";
$word->visible =1;
$word->Documents->Add();
$word->Selection->Typetext("hello world this is a small word file for test");
$word->Documents[1]->SaveAs("myFile.doc");
$word->Quit();
//free the object
$word = null;