Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

Priting MSG to XPS fails

$
0
0
Hi,

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

Viewing all articles
Browse latest Browse all 1367

Trending Articles