Ok I see. Try INI setting com.autoregister_typelib = true and leave out the call of com_load_typelib() That gives you one instance of M$ Word that is dropped with Quit. Loading is slower so you might try to use that with ini_set() only when needed. I don't know if it's honored that way though.
Cheers -- Sven > -----Ursprüngliche Nachricht----- > Von: Mark Hammond [SMTP:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 6. März 2003 16:19 > An: [EMAIL PROTECTED] > Betreff: RE: [PHP-WIN] com_load_typelib() > > I need to load the typelib for the bookmarking functionality. > > When it is commented out I get these errors when I try to navigate to a bookmark. > > PHP Warning: Use of undefined constant wdGoToBookmark - assumed 'wdGoToBookmark' in > C:\somewhere\index.php on line 87 > > PHP Warning: Invoke() failed: Exception occurred. Source: Microsoft Word > Description: Bad parameter in C:\somewhere\index.php on line 87 > > Line 87 contains the following code: > > $word->Selection->GoTo(wdGoToBookmark, $empty, $empty,'newname'); > $word->Selection->TypeText($_POST['name']); > > ___________________________________________ > > Mark Hammond [EMAIL PROTECTED] > Information Service Coordinator > Collingwood Utility Services > > Phone: 705-445-1800 ext: 247 > Mobile: 705-441-4209 > > > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2003 10:11 AM > To: Mark Hammond > Cc: '[PHP-WIN]' > Subject: AW: [PHP-WIN] com_load_typelib() > > What do you need the typelib for ? I suggest you try > the example in the doc of com_load_typelib, just > comment out the call to this particular function and smile. > > (Background: com_load_typelib apparently does not > attach to a running instance, so you get orphans en masse.) > > Generally you have to quit COM server objects with its > respective method. For MS Word this is Application.Quit > ($word->Quit in PHP when the instance was created using > $word = new COM('Word.Application'); > But for just using a COM object with the known vocabulary > you never need to call com_load_typelib. This call is used > by IDEs to show the interface to the user so (s)he can > learn the possibilities (Object browser or similar). > -- > Sven > > > -----Ursprüngliche Nachricht----- > > Von: Mark Hammond [SMTP:[EMAIL PROTECTED] > > Gesendet am: Donnerstag, 6. März 2003 15:13 > > An: [EMAIL PROTECTED] > > Betreff: [PHP-WIN] com_load_typelib() > > > > How does one kill the process created by com_load_typelib()? > > > > > > com_load_typelib('Word.Application'); > > > > > > The above code creates an instance of winword.exe on the server, and > leaves it running indefinately. How does one kill this process when the > code is done executing? > > > > ___________________________________________ > > > > Mark Hammond [EMAIL PROTECTED] > > Information Service Coordinator > > Collingwood Utility Services > > > > Phone: 705-445-1800 ext: 247 > > Mobile: 705-441-4209 > > > > > > > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php