สร้างและบันทึกโน้ต Outlook ใน Ruby

Aspose.Email - การสร้างและบันทึกโน้ต Outlook

เพื่อสร้างบันทึก Outlook ด้วย Aspose.Email Java for Ruby เพียงเรียกใช้โมดูล CreateOutlookNote ที่นี่คุณจะเห็นตัวอย่างโค้ด.

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

ดาวน์โหลดโค้ดที่ทำงาน

ดาวน์โหลด Creating and Saving Outlook Notes (Aspose.Email) จากไซต์โซเชียลโค้ดใดก็ได้ที่ระบุด้านล่าง: