MailPrinterPrint Method (MailMessage, Stream, PrintFormat)

Prints the specified message object using the desired format.

Namespace:  Aspose.Email.Printing
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.9
Syntax
public void Print(
	MailMessage message,
	Stream outputStream,
	PrintFormat printingFormat
)

Parameters

message
Type: Aspose.EmailMailMessage
The MSG file to print.
outputStream
Type: System.IOStream
The output stream.
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