hi ..  I am trying to write a script that faxes a
message via MS Word.   Does anyone know how to :

1. tell the script to select fax as printer
2. insert recipient's name
3. insert recipient's fax number.

The names + numbers are fed from a database

The following code actually works but obviously it
sends the message to the printer :
...

$word = new COM("word.application") or die("Unable to
instanciate Word");

$word->visible = true;

// open an empty doc
$word->Documents->Add();

// type the message
$word->Selection->TypeText(' This is a test');
$word->Documents[1]->PrintOut();

//closing word
$word->Quit();

//free the object
$word->Release();
$word = null;
....

Any help would be greatly appreciated.
Regards,
David


      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/

Reply via email to