在 Ruby 中创建并保存 Outlook 备注
Contents
[
Hide
]
Aspose.Email - 创建和保存 Outlook 笔记
要使用 Aspose.Email Java for Ruby 创建 Outlook 备注,只需调用 CreateOutlookNote 模块。这里可以看到示例代码。
Ruby 代码
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."
下载运行代码
从以下任意提到的社交编码站点下载 创建和保存 Outlook 便笺 (Aspose.Email):