note 48275 added to ref.com
| From: | denis at geomap dot ru | Date: | Fri, 17 Dec 2004 15:58:57 +0000 |
| Subject: | note 48275 added to ref.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81914@lists.php.net to get a copy of this message | ||
People help to understand! I need to create a taskItem in Outlook nothing it turns out!
What I do not so?
<code>
// Some servers may have an auto timeout, so take as long as you want.
set_time_limit(0);
// Show all errors, warnings and notices whilst developing.
error_reporting(E_ALL);
com_load_typelib('Outlook.Application');
// after that the code from Purplerain
$Task = new COM("Outlook.Application") or die('Can't run Outlook');
print "Outlook loaded, version {$Task->Version}\n";
$myItem = $Task->CreateItem(3);
$myItem->Body='Call';
$myItem->Subject='call';
//$myItem->Start = "20/11/2004";
//$myItem->ReminderSet=True;
//$myItem->ReminderTime=Date('06.09.2004');
//$myItem->ReminderPlaySound = True;
$myItem->Save();
//$myItem->Display();
$Task->Quit();
$Task->Release();
$Task = null;
print "Outlook closed.\n";
</code>
----
Manual Page -- http://www.php.net/manual/en/ref.com.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48275
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48275&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48275&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48275&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48275&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48275&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48275&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48275&report=yes
Search -- http://master.php.net/manage/user-notes.php