SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 34 of 34
  1. #26
    Non-Member
    Join Date
    May 2005
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Heres my contribution:

    Go and jump in a fire.

  2. #27
    SitePoint Zealot
    Join Date
    Feb 2005
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then the error message changes from:

    Argument: 2

    to

    Argument: 3

    !! Very odd?

  3. #28
    SitePoint Wizard Dylan B's Avatar
    Join Date
    Jul 2004
    Location
    NYC
    Posts
    1,150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dalechristian
    Heres my contribution:

    Go and jump in a fire.
    Don't troll, it's pointless.

  4. #29
    SitePoint Zealot
    Join Date
    Feb 2005
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    More suggestions??

    Thanks

  5. #30
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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;
    That works just fine for me. Windows XP, PHP 5.0.4, Apache 1.3.something, Office 2003.

  6. #31
    SitePoint Zealot
    Join Date
    Feb 2005
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So it must be something to do with versions!! Any suggestions? Thanks

  7. #32
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Updrade?

  8. #33
    Non-Member
    Join Date
    May 2005
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by someonewhois
    Updrade?
    How funny, after all that time wasting what does it come down to? The thing I said in my very first post.

  9. #34
    SitePoint Wizard stereofrog's Avatar
    Join Date
    Apr 2004
    Location
    germany
    Posts
    4,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $new_file = "c:/avishai/php/manager/invoice/test.doc";
    $word->Documents[1]->SaveAs($new_file);
    Try using correct windows path (with backslashes).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •