Jython में Outlook नोट्स बनाना और सहेजना
Contents
[
Hide
]
Aspose.Email - Outlook नोट्स बनाना और सहेजना
Outlook नोट्स बनाने के लिए Aspose.Email Java for Jython का उपयोग करके, बस 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) डाउनलोड करें: