PHP/Com

Timeout error with Word object

Page 1 of 1

1 Replies - 1220 Views - Last Post: 05 May 2005 - 10:25 AM Rate Topic: -----

#1 cyberscribe  Icon User is offline

  • humble.genius
  • member icon

Reputation: 10
  • View blog
  • Posts: 1,062
  • Joined: 05-May 02

PHP/Com

Posted 04 May 2005 - 06:32 PM

Hi Gang,

I'm hoping someone can help with this. From a colleague of a colleague:

Quote

I’ve got a simple PHP page that starts an instance of Word, writes some text and then saves the file. Something like this:

    $word=new COM("Word.Application") or die("Unable to instanciate Word");
    $word->Documents->Add();
    $word->Selection->TypeText("This is a test.");
    $word->Documents[1]->SaveAs("C:\\test.doc");
    $word->Quit();
I've tried other folk's code samples with the same results as mine, the Task Manager shows an instance of winword.exe but the page eventually times out with a 500 error. I’ve changed the account that runs Word from “the launching user” to “the interactive user” to a specific user and got the same results each time. Launch, access and configuration privileges all look like they’re set as well.


Best,
Robert

Is This A Good Question/Topic? 0
  • +

Replies To: PHP/Com

#2 cyberscribe  Icon User is offline

  • humble.genius
  • member icon

Reputation: 10
  • View blog
  • Posts: 1,062
  • Joined: 05-May 02

Re: PHP/Com

Posted 05 May 2005 - 10:25 AM

Someone? Anyone?

So far I just told them to try an RTF generator instead...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1