Heres my contribution:
Go and jump in a fire.
| SitePoint Sponsor |
Heres my contribution:
Go and jump in a fire.

Then the error message changes from:
Argument: 2
to
Argument: 3
!! Very odd?
Don't troll, it's pointless.Originally Posted by dalechristian

More suggestions??
Thanks
That works just fine for me. Windows XP, PHP 5.0.4, Apache 1.3.something, Office 2003.PHP Code:<?php
set_time_limit(0);
$word = new COM('word.application') or die('Word won\'t initiate...');
$word->Documents->Open('C:\\web\\htdocs\\scratch\\test.doc');
$word->Documents[1]->SaveAs('C:\\web\\htdocs\\scratch\\new.doc');
$word->Quit();
$word = null;
- Nathan

So it must be something to do with versions!! Any suggestions? Thanks
Updrade?
- Nathan
How funny, after all that time wasting what does it come down to? The thing I said in my very first post.Originally Posted by someonewhois





Try using correct windows path (with backslashes).$new_file = "c:/avishai/php/manager/invoice/test.doc";
$word->Documents[1]->SaveAs($new_file);
Bookmarks