Re: load word document with php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Thomas,

Tuesday, November 30, 2004, 1:35:10 PM, you wrote:

TF> <?php
TF>    $word=new COM("word.application") or die("Cannot start word for you");
TF>    $word->visible = 1 ;
TF>    $word->Documents->Open("Test.doc");
TF>    $word->Selection->TypeText("Hello World");
TF>    $word->Documents[1]->SaveAs("New Test.doc");
TF>    $word->ActiveDocument->Close(false);
TF>    $word->Quit(false);
TF>    $word->Release();
TF>    $word = null;
?>>

TF>  No error occurs and the new word Document is saved with the changes, but i
TF> don't see the document within the webbrowser.

Redirect to the newly modified .doc file (or do a file passthru -
whatever, just send it to the browser somehow) and then of course pray
to the browser Gods that the end users browser has been configured to
display Word files rather than save them (read: will only work in IE,
if at all).

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I am not young enough to know everything." - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux