MailPrinterPrint Method (MailMessage, String, PrintFormat)

Prints the specified message object using the desired format.

Namespace:  Aspose.Email.Printing
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public void Print(
	MailMessage message,
	string outputFile,
	PrintFormat printingFormat
)

Parameters

message
Type: Aspose.EmailMailMessage
The MSG file to print.
outputFile
Type: SystemString
The output file.
printingFormat
Type: Aspose.Email.PrintingPrintFormat
The printing format.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionIf printingFormat is not supported.
ArgumentNullExceptionIf one of the arguments is null.
InvalidOperationExceptionIf object can't be processed.
See Also