User Profile

Collapse

Profile Sidebar

Collapse
sukhvir13
sukhvir13
Last Activity: Apr 3 '09, 02:00 PM
Joined: Apr 3 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sukhvir13
    replied to PHP COM MS Word Application
    in PHP
    I written this code...
    Code:
    <?php
    $word = new COM("word.application") or die ("Could not initialise MS Word object.");
    $word->ActiveDocument->Open("doc1.doc");
    // Extract content.
    $content = (string) $word->ActiveDocument->Content;
    echo $content;
    $word->ActiveDocument->Close(false);
    $word->Quit();
    $word = null;
    unset($word);
    ...
    See more | Go to post
    Last edited by pbmods; Apr 3 '09, 11:30 PM. Reason: Added CODE tags.

    Leave a comment:


  • sukhvir13
    replied to PHP COM MS Word Application
    in PHP
    Facing same problem... Pls help someone

    after all i am having error like
    Fatal error: Uncaught exception 'com_exception' with message 'Unable to lookup `ActiveDocument s': Unknown name. ' in C:\wamp\www\New Folder\index.ph p:12 Stack trace: #0 C:\wamp\www\New Folder\index.ph p(12): unknown() #1 {main} thrown in C:\wamp\www\New Folder\index.ph p on line 12


    and on line 12...$word->ActiveDocument s[0]->...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...