Hi,
The following code is used:
If I remove the FormattingFlags MailInfo setting, the error is gone, but the output XPS is empty.
Best Regards
I am unable to print the attached MSG file to XPS using the MailPrinter class.
Using Aspose Email 3.0.0 (latest version).
Unbehandelte Ausnahme: System.InvalidOperationException: Given document can't be processed
bei ☼?↨.???.Execute(Object )
bei ☼?↨.◄?↨.▼?↨(Stream , Stream , ♫?↨ )
bei ☼?↨.◄?↨.▼?↨(String , Stream , ♫?↨ )
bei ☼?↨.◄?↨.Print(MailMessage , Stream )
bei Aspose.Email.Printing.MailPrinter.Print(MailMessage message, String outputFile, PrintFormat printingFormat)
The following code is used:
MailMessage msg = MailMessage.Load("Neuer Prozess ( Dokument prüfen ) zur Bearbeitung anstehend....msg");
Aspose.Email.Printing.MailPrinter printer = new Aspose.Email.Printing.MailPrinter();
printer.FormattingFlags = Aspose.Email.Printing.MessageFormattingFlags.MailInfo;
printer.Print(msg, "output.xps", Aspose.Email.Printing.PrintFormat.XPS);
If I remove the FormattingFlags MailInfo setting, the error is gone, but the output XPS is empty.
Best Regards
Andreas