สร้างและบันทึกโน้ต Outlook ใน Jython
Contents
[
Hide
]
Aspose.Email - การสร้างและบันทึกโน้ต Outlook
เพื่อสร้างโน้ต Outlook โดยใช้ Aspose.Email Java for Jython, เพียงเรียกใช้โมดูล CreateOutlookNote ที่นี่คุณสามารถดูตัวอย่างโค้ดได้
Jython Code
from aspose-email import Settings
from com.aspose.email import MapiNote
from com.aspose.email import NoteColor
from com.aspose.email import NoteSaveFormat
class CreateOutlookNote:
def __init__(self):
dataDir = Settings.dataDir + 'ProgrammingOutlook/WorkingWithOutlookMessageFiles/CreateOutlookNote/'
note = MapiNote()
note.setSubject("Blue color note")
note.setBody("This is a blue color note")
noteColor = NoteColor
note.setColor(noteColor.Blue)
note.setHeight(500)
note.setWidth(500)
noteSaveFormat=NoteSaveFormat
note.save(dataDir + "MapiNote.msg", noteSaveFormat.Msg)
print "Created outlook note successfully."
if __name__ == '__main__':
CreateOutlookNote()ดาวน์โหลดโค้ดที่ทำงาน
ดาวน์โหลด Creating and Saving Outlook Notes (Aspose.Email) จากไซต์โซเชียลโค้ดใดก็ได้ที่ระบุด้านล่าง: