Jump to content

Recommended Posts

Hello it's me again. I am trying to do a simple COM with the following code

 

<html>

<body>

<?php
// starting word
$word = new COM("Word.Application" ) or die("Unable to instantiate Word");
$word->Documents->Open("test.doc");
$word->Quit();
?>


</body>
/html>

 

As i am new to php and have never tried this before i dont know how to solve the error below. Any help is really appreciated.

 

Fatal error: Cannot instantiate non-existent class: com in /homepages/12/d214897219/htdocs/adam/test code/file_get_contents().php on line 7

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/73314-solved-simple-com-help/
Share on other sites

Its not installed then but i am not sure if i am doing the right thing. Basically i want a word document with a table inside. This table of information changes daily. The users for this are complete idiots. So what i wanted is a simple word document for the users to change the table and upload to the server. Once uploaded PHP does the work and takes the tables and inserts it into a webpage.

 

Can you point me in the right direction please

 

Thanks for the help so far.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.