#40453 [NEW]: Application Error in New COM ("word.application")

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40453 [NEW]: Application Error in New COM ("word.application")

    From: mraji_1 at yahoo dot com
    Operating system: Win 2000
    PHP version: 4.4.4
    PHP Bug Type: COM related
    Bug description: Application Error in New COM ("word.application")

    Description:
    ------------
    I am using Apache/1.3.33 (Win32) PHP/4.3.10 that was part of easyphp

    When I try to instantiate the word application, I get the following
    Warning :-

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    The rest of the code executes and word application opens and inserts my
    text.
    Thanks

    Best
    Raji


    Reproduce code:
    ---------------
    <?php

    $word = new COM("word.application");
    //die("Impossible to instantiate WordApp");
    print "Word is running, version {$word->Version}\n</br>";


    $word->Visible=1;

    $word->Documents->Add();
    $word->Selection->TypeText("This is a test...");
    $word->Documents[1]->SaveAs("test_com_php.doc");
    $word->Quit();

    ?>


    Expected result:
    ----------------
    No Warning messages

    Actual result:
    --------------
    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3

    Warning: (null)(): Type library value emptyenum is already defined and has
    a different value in c:\program files\3w\www\whowhatwhere\createw.php on
    line 3
    Word is running, version 10.0


    --
    Edit bug report at [url]http://bugs.php.net/?id=40453&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40453&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40453&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40453&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40453&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40453&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40453&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40453&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40453&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40453&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40453&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40453&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40453&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40453&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40453&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40453&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40453&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40453&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40453&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40453&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40453&r=mysqlcfg[/url]
    mraji_1 at yahoo dot com Guest

  2. Similar Questions and Discussions

    1. Acro Pro Update Error: "An invalid application was selected."
      All, I've downloaded the V7.0.5 updater for Acro Professional and when I run it, and point it at my version of Acro Pro (v7.0.3), it says "An...
    2. Package error - "The application InDesign has unexectedly quit".
      Hi, I am using Indesign CS2 on MacOS 10.4.6. I use large files over a fast network, which used to be fine, but recently when I come to Package...
    3. DB Field name="application" and Application scope variables
      Hi, There is DB Field application which overwrited ,as I see , Application scope variable Are there way to solve this problem without using...
    4. "lsass.exe - application error" on bootup
      My system displays an "lsass.exe - application error" window with this message: "the application failed to implement properly (0xc0000033)"...
    5. Error in CreatObject(""): 32797: Application-defined or object-define error
      Hi, I am getting "Application-defined or object-define error" when trying to instantiate an MTS component. However, when I run the VB source-code...
  3. #2

    Default #40453 [Opn->Fbk]: Application Error in New COM ("word.application")

    ID: 40453
    Updated by: [email]tony2001@php.net[/email]
    Reported By: mraji_1 at yahoo dot com
    -Status: Open
    +Status: Feedback
    Bug Type: COM related
    Operating System: Win 2000
    PHP Version: 4.4.4
    New Comment:

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]




    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-12 21:18:54] mraji_1 at yahoo dot com

    Description:
    ------------
    I am using Apache/1.3.33 (Win32) PHP/4.3.10 that was part of easyphp

    When I try to instantiate the word application, I get the following
    Warning :-

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    The rest of the code executes and word application opens and inserts my
    text.
    Thanks

    Best
    Raji


    Reproduce code:
    ---------------
    <?php

    $word = new COM("word.application");
    //die("Impossible to instantiate WordApp");
    print "Word is running, version {$word->Version}\n</br>";


    $word->Visible=1;

    $word->Documents->Add();
    $word->Selection->TypeText("This is a test...");
    $word->Documents[1]->SaveAs("test_com_php.doc");
    $word->Quit();

    ?>


    Expected result:
    ----------------
    No Warning messages

    Actual result:
    --------------
    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3

    Warning: (null)(): Type library value emptyenum is already defined and
    has a different value in c:\program
    files\3w\www\whowhatwhere\createw.php on line 3
    Word is running, version 10.0



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40453&edit=1[/url]
    tony2001@php.net Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139