Problems with the Windows version of XAMPP, questions, comments, and anything related.
by doctorli » 25. July 2005 19:18
<?php
// Load the appropriate type library.
com_load_typelib('Word.Application');
// Create an object to use.
$word = new COM('word.application') or die('Unable to load Word');
print "Loaded Word, version {$word->Version}\n";
// Open a new document with bookmarks of YourName and YourAge.
$word->Documents->Open('D:/apache/Projects/ham/ham_file/Unfilled1.DOC');
?>
xampp can't call the COM, does anyone know how to do this ?
-
doctorli
-
- Posts: 4
- Joined: 25. July 2005 19:01
by Wiedmann » 25. July 2005 21:24
Hm, any error message?
-
Wiedmann
- AF Moderator
-
- Posts: 17102
- Joined: 01. February 2004 12:38
- Location: Stuttgart / Germany
by doctorli » 26. July 2005 17:44
When I run:
<?
// Load the appropriate type library.
com_load_typelib('Word.Application');
// Create an object to use.
$word = new COM('word.application') or die('Unable to load Word');
print "Loaded Word, version {$word->Version}\n";
// Open a new document with bookmarks of YourName and YourAge.
$word->Documents->Open('c:/test/math.doc');
?>
it say: Uncaught exception 'com_exception' with message 'Failed to create COM object `word.application'
i use XAMPP Windows 1.4.14
-
doctorli
-
- Posts: 4
- Joined: 25. July 2005 19:01
by Wiedmann » 26. July 2005 17:58
it say: Uncaught exception 'com_exception' with message 'Failed to create COM object `word.application'
Which function raise this error? No "in line ..." in the output?
How did you start Apache?
-
Wiedmann
- AF Moderator
-
- Posts: 17102
- Joined: 01. February 2004 12:38
- Location: Stuttgart / Germany
Return to XAMPP for Windows
Who is online
Users browsing this forum: No registered users and 111 guests