Module: Asposeemailjava::CreateOutlookNote

Defined in:
lib/asposeemailjava/Outlook/createoutlooknote.rb

Instance Method Summary collapse

Instance Method Details

#initializeObject



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/asposeemailjava/Outlook/createoutlooknote.rb', line 3

def initialize()
    data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'

    note = Rjb::import('com.aspose.email.MapiNote').new
    note.setSubject("Blue color note")
    note.setBody("This is a blue color note")
    note.setColor(Rjb::import('com.aspose.email.NoteColor').Blue)
    note.setHeight(500)
    note.setWidth(500)
    note.save(data_dir + "MapiNote.msg", Rjb::import('com.aspose.email.NoteSaveFormat').Msg)

    puts "Created outlook note successfully."
end