When converting an Aspose.Email.MailMessage to an XPS file using Aspose.Email.Printing.MailPrinter with FormattingFlags set to Aspose.Email.Printing.MessageFormattingFlags.MailInfo and setting MailPrinters CultureName property to German, the texts in the MailInfo “From”, “Sent”, “To”, “Subject” and “Attachments” are still in English and not in German.
By the way, the documentation for the “CultureName” Property is weak. Please add an example and explain what this Property does.
Aspose.Email.Printing.MailPrinter mp = new Aspose.Email.Printing.MailPrinter();
mp.FormattingFlags = Aspose.Email.Printing.MessageFormattingFlags.MailInfo | Aspose.Email.Printing.MessageFormattingFlags.Attachments | Aspose.Email.Printing.MessageFormattingFlags.AutoFitWidth;
mp.CultureName = "de";
mp.Print(emlMessage, ms, Aspose.Email.Printing.PrintFormat.XPS);
results to
From: “Rechnungen” <faktur@gazsch.de>
Sent: 10.04.2020 08:54
To: win.pdf-eingangsrechnung@wn.at
CC:
Subject: Rechnungen-TEG M.Schwetzer GmbH
Attachments: PDF_Rechnungen_2020-04-09-16_23_47_753000.PDF
but the correct MailInfo in German language looks like
Von: “Rechnungen” <faktur@gazsch.de>
Gesendet: 10.04.2020 08:54
An: win.pdf-eingangsrechnung@wn.at
Cc:
Betreff: Rechnungen-TEG M.Schwetzer GmbH
Anhänge: PDF_Rechnungen_2020-04-09-16_23_47_753000.PDF