示例代码:
// 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);