Print Email Message to XPS with Aspose.Email for .NET

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Email logo

We are pleased to announce the release of Aspose.Email for .NET 1.2. In this version, we have added support for printing email messages to XPS format using the MailPrinter class. The Print() method takes an instance of the MailMessage class as an argument, so you can print EML, MSG or MHT files. This sample code shows how to print an email:

// Initialize the MailPrinter class
MailPrinter msgPrinter = new MailPrinter();
// Load an email message
MailMessage msg = MailMessage.Load("attached and embedded image.msg", MessageFormat.Msg);
// Call Print() method
msgPrinter.Print(msg, "test.xps", PrintFormat.XPS);

Aspose.Email for .NET 1.2 also contains some other new features and bug fixes. For a complete list and the download, please visit http://www.aspose.com/community/files/51/.net-components/aspose.email-for-.net/default.aspx.