Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Jonnyuse Win32::OLE; use Win32::OLE::Const; my $Body = "this is just a test\nnew note"; my $Color = 1; my $Categories = "Favorites"; my $MessageClass = "IPM.StickyNote"; my $Top = "182"; my $Width = "200"; my $Height = "166"; my $Left = "207"; $Outlook = Win32::OLE->GetActiveObject('Outlook.Application'); $olc = Win32::OLE::Const->Load($Outlook); # Setup Creation of a new Note $note = $Outlook->CreateItem($olc->{olNoteItem}); # Write Note Title & Body $note->{Body} = $Body; # Optional note properties. $note->{Categories} = $Categories; $note->{Width} = $Width; $note->{Height} = $Height; $note->{Top} = $Top; $note->{Left} = $Left; #$note->(Color) = $Color; # Close and Save note. $note->Close($olc->{olSave});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OLE and Outlook Note Color's
by simon.proctor (Vicar) on Mar 01, 2002 at 00:27 UTC | |
by Anonymous Monk on Mar 01, 2002 at 09:55 UTC |