Erstellen und Speichern von Outlook-Notizen in Ruby

Aspose.Email - Erstellen und Speichern von Outlook-Notizen

Um Outlook‑Notizen mit Aspose.Email Java for Ruby zu erstellen, rufen Sie einfach das CreateOutlookNote‑Modul auf. Hier sehen Sie Beispielcode.

Ruby‑Code


 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."

Laufenden Code herunterladen

Laden Sie Creating and Saving Outlook Notes (Aspose.Email) von einer der unten genannten Social‑Coding‑Seiten herunter: