Tạo và Lưu ghi chú Outlook trong Ruby
Contents
[
Hide
]
Aspose.Email - Tạo và Lưu ghi chú Outlook
Để tạo Outlook Notes bằng Aspose.Email Java for Ruby, chỉ cần gọi mô-đun CreateOutlookNote. Ở đây bạn có thể xem mã ví dụ.
Mã 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."
Tải mã đang chạy
Tải Tạo và Lưu Ghi chú Outlook (Aspose.Email) từ bất kỳ một trong các trang mã nguồn xã hội được đề cập dưới đây: