Jython で Outlook ノートを作成および保存
Contents
[
Hide
]
Aspose.Email - Outlookノートの作成と保存
Aspose.Email Java for Jython を使用して Outlook のメモを作成するには、単に CreateOutlookNote モジュールを呼び出してください。以下にサンプルコードを示します。
Jython コード
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()実行コードをダウンロード
以下に挙げるソーシャルコーディングサイトのいずれかから Outlook ノートの作成と保存 (Aspose.Email) をダウンロードしてください: